Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Write Segment Data to a Notion Database

Blog post from Twilio

Post Details
Company
Date Published
Author
Lizzie Siegle
Word Count
1,234
Language
English
Hacker News Points
-
Summary

To write Segment data about page visits to a Notion database using Twilio Serverless Toolkit, first set up a Twilio account and configure an SMS-capable phone number. Then, create a new Notion API integration and add a table database to store the data. Next, share the database with the integration and configure a Twilio Function to write to the Notion database using the Segment app and superagent library. Set up a Segment source for a website and connect it to the Twilio Function as a destination, enabling webhooks to send data to the function. Finally, save the URL of the Twilio Function in the Segment Console and enable webhooks to start sending page visit data to the Notion database.