Topview Logo
  • Create viral videos with
    GPT-4o + Ads library
    Use GPT-4o to edit video empowered by Youtube & Tiktok & Facebook ads library. Turns your links or media assets into viral videos in one click.
    Try it free
    gpt video

    Set up Notion Knowledge Base AI Assistant (@Notion + n8n powered)

    blog thumbnail

    Introduction

    In this article, we will walk you through the process of setting up a Notion Knowledge Base AI Assistant using the Notion API and n8n workflow automation tool. This innovative assistant will allow you to streamline your knowledge management and gain insights effortlessly. Let’s dive into the step-by-step setup process.

    Step 1: Create a Connection in Notion

    1. Access Notion Account Settings: Open your Notion account and navigate to the top left corner to click on the Settings button.

      • Note: The appearance of the settings button may vary for users on a team plan.
    2. Manage Integrations: From the settings menu, select Connections and then choose to develop or manage an integration.

    3. Create New Integration: Click on Create New Integration.

      • Give your integration a name, e.g., “Nathan Bot.”
      • Choose the workspace for integration and select Internal for now (to avoid additional steps required for public integrations).
      • Optionally, add an icon (this step can be skipped).
    4. Copy Integration Secret: Make sure to copy the Internal Integration Secret for use in the next steps.

    Step 2: Configure n8n with Notion

    1. Access n8n Account: If you’ve just created a new account in n8n, it will have a standard layout.

    2. Add Credential: Go to the Credentials section and click on Add New Credential.

      • Search for Notion API (not World2 API).
      • Paste in the Internal Integration Secret from your Notion settings and save it.
    3. Use Workflow Template:

      • Navigate to the workflow template on n8n.
      • Click Use Workflow, then copy the template to your clipboard.
    4. Create New Workflow Session:

      • Go to the Workflows section in n8n and select Start from Scratch.
      • Paste the copied workflow template by pressing Command + V.

    Step 3: Attach Credentials and Set Up AI Model

    1. Connect Notion Credential: Each node that shows an error will need to have the Notion credential attached. Select the newly created Notion account to resolve errors.

    2. Set Up AI Model:

      • You will need to connect credentials for the AI tool. For this article, we are using an existing OpenAI key, but you can also set up an Anthropic key to test with Claude 3.5 for free.

    Step 4: Clone Notion Database

    1. Copy Database Template:

      • Access the workflow template and duplicate it into your Notion account.
      • This database comes populated with realistic examples for testing, allowing you to see its functionality without manual data entry.
    2. Connect the Database to the Workflow: After duplicating, click the Ellipsis button and select Connect to to link the database to the credential.

    3. Select Correct Database:

      • Open your Notion node in the workflow and choose the cloned database to finalize the setup.

    Final Steps: Testing and Activation

    1. Test the Setup: Run a quick test query, such as “What VPN do we use?”

      • You should see accurate outputs referencing your Notion database.
    2. Activate Workflow: Ensure everything is saved and activate your workflow. Copy the Chat URL from the trigger node for a public interface.

    3. Use in Live Mode: You can now use the assistant in a live environment. The executions will be logged in a designated tab.

    Conclusion

    Now you’ve successfully set up a Notion Knowledge Base AI Assistant powered by n8n! This tool can help streamline knowledge sharing and retrieval, enhancing team collaboration.


    Keyword

    • Notion
    • n8n
    • Knowledge Base
    • AI Assistant
    • Integration
    • OpenAI
    • Workflow
    • Database

    FAQ

    Q1: What is the purpose of the Notion Knowledge Base AI Assistant?
    A1: The assistant helps streamline knowledge management and retrieval from your Notion workspace using AI capabilities.

    Q2: Is the integration only for personal use?
    A2: No, while it can be set up for personal or team use, it can also be configured for a public workspace with additional steps.

    Q3: Can I use AI models other than OpenAI?
    A3: Yes, you can use Anthropic's Claude 3.5 as an alternative AI model.

    Q4: What should I do if I encounter errors while connecting nodes?
    A4: Ensure that you are attaching the correct credentials for both Notion and your AI model in the workflow.

    One more thing

    In addition to the incredible tools mentioned above, for those looking to elevate their video creation process even further, Topview.ai stands out as a revolutionary online AI video editor.

    TopView.ai provides two powerful tools to help you make ads video in one click.

    Materials to Video: you can upload your raw footage or pictures, TopView.ai will edit video based on media you uploaded for you.

    Link to Video: you can paste an E-Commerce product link, TopView.ai will generate a video for you.

    You may also like