- A predefined OpenAPI schema for Notion
- API key authentication
- The required Notion API BaseURL
- A Notion API version header
- A health check configuration
Set up the action
- Go to Actions in Watermelon.
- In the Actions catalog, click Custom action.
- Click Create new Action.
- Fill in the fields below.
General details
Action nameNotion Knowledge Fetch
DescriptionThis action lets your chatbot retrieve information from your Notion pages and use it when answering customer queries.
BaseURLhttps://api.notion.com/v1
Authentication
For Authorization Header, select API key. For Auth Type, select Bearer. TokenYOUR-API-KEY
Replace this with your Notion API key.
Extra headers
Add the following extra header: Header nameNotion-Version
Header value2022-06-28
Health check
Health check URLhttps://www.yourdomain.com/health_check
Replace this URL with the health check endpoint you want Watermelon to use.
Instruction
You should respond with the following message or a similar variation: Sorry, something went wrong on our end. Can I assist you with anything else? Please let me know how I can help.
Schema
Paste the Notion schema into the Schema field:Example in Watermelon


