I’m trying to setup a simple AI Agent which would have a tool to search through Notion pages. The flow is very simple:
- Person A asks a question in Slack
- AI Agent creates a search query and makes a request to Notion
- Retrieves information and answers back to Person A in Slack
I have already setup the correct Slack credentials so I can chat with the bot through Slack.
Already have setup a Notion key and added the integration to the respective Notion page (permissions are inherited throughout the child pages).
The data structure in Notion is a bit specific as there is a Parent Page → database which lists all documents with some metadata → child pages with the actual detailed information. The AI Agent only queries the database list and since the detailed information is not there, it returns an answer it cannot find anything. For some reason it doesn’t go deeper. I’ve played around with the System Instructions, but same result.
I didn’t find a template or something, maybe I am not building the workflow properly.
Can someone help out with what is the best approach to build such AI Agents when data is queried from Notion? I know I can use a RAG, but want to check if I can do it with directly using Notion.
Thanks,