Write to a Notion Database via SMS with Twilio Serverless
This article explains how to write to a Notion database using Twilio Programmable Messaging, the Twilio Serverless Toolkit, and Twilio Functions. To get started, you need a Twilio account, a Twilio phone number with SMS capabilities, Node.js installed, a Notion account, and a personal phone number to test the project. You create a new Notion page in your workspace and make it a database by clicking on the "Add a Page" button. Then, you share the database with an integration by clicking on the "Share" button and selecting the integration type as internal. After that, you add Twilio to the project to allow non-Notion users to fill the database via SMS. You create a new Twilio Function with JavaScript code that retrieves the inbound text message, parses it based on commas, and writes content to the Notion API's pages endpoint. Finally, you configure the function with a Twilio phone number and deploy the app to open up your app to the web with a public-facing URL.
Company
Twilio
Date published
June 14, 2021
Author(s)
Lizzie Siegle
Word count
1366
Language
English
Hacker News points
None found.