前提
・NotionはAPIを公式に公開していない
・そのため、本記事で紹介する方法は非公式(=サポート対象外+突然の仕様変更による動作停止リスクあり)
・本記事で紹介する方法以外にも「NotionのAPIを叩く(※自力調査)」・「automate.io(※有料)」といった方法があり得る。
ゴール
外部システムにおける任意のイベント(今回の例では、Slack投稿へのスタンプ追加)に応じて、NotionのToDoが自動生成されるようにする。
手順
①Notion Automationsに登録する
②Notion Automations上でZapier認証を行う(※これによりZapierにNotion連携用のカスタムアプリが追加される)
![](http://regardie.dev/wp-content/uploads/2021/04/image-1-1024x532.png)
③Zapier上でNotion投稿のアクションを作成する(※Notion Automationsで認証を行った場合のみ、Notion連携用のカスタムアプリが選択可能になります)
![](http://regardie.dev/wp-content/uploads/2021/04/image-1-1.png)
④「Notion Automationsからライセンスキー」・「NotionからトークンV2」をそれぞれ取得し、ZapierのNotionAccount認証画面に入力。
![](http://regardie.dev/wp-content/uploads/2021/04/image-3.png)
![](http://regardie.dev/wp-content/uploads/2021/04/image-2.png)
![](http://regardie.dev/wp-content/uploads/2021/04/image-1-4-1024x564.png)
⑤Actionを設定する(Notion URLには、ToDoを投稿したいページのURLをそのまま貼り付ければOK)
![](http://regardie.dev/wp-content/uploads/2021/04/image-5.png)