ZBrain Documentation
  • ZBrain Documentation
    • Components of ZBrain
    • Getting started with ZBrain
    • 📚Knowledge base
      • How to create a knowledge base?
      • Knowledge source
      • Information schema
      • File summary
      • Automated reasoning
      • Retrieval testing
      • Knowledge base settings
    • 📱APP
      • How to create a new app?
      • How to set up and customize your app?
      • How to access the app reporting dashboard?
    • 🤖ZBrain AI agents
      • Get started with agents on ZBrain
      • Deploying pre-built agents
      • Creating custom AI agents
        • Agent setup
        • Define input sources
        • Define Flow
          • Key elements of a Flow
          • Flow Components
            • Activepieces Platform
            • AITable
            • Airtable
            • Amazon S3
            • Amazon SNS
            • Amazon SQS
            • Amazon Textract
            • Apify
            • Apollo
            • Approval
            • Asana
            • Azure Communication Services
            • Azure Cosmos DB
            • Azure Document Intelligence
            • Azure OpenAI
            • Azure Translation
            • Bannerbear
            • Baserow
            • Beamer
            • Bedrock Claude
            • Bettermode
            • Binance
            • Bing Search
            • Blackbaud
            • Bonjoro
            • Box
            • Brevo
            • Brilliant Directories
            • Bubble
            • CSV
            • Calendly
            • Certopus
            • Clearout
            • Clockodo
            • Code
            • Confluence
            • Connections
            • Constant Contact
            • Contiguity
            • Contentful
            • Customer.io
            • Crypto
            • Databricks
            • Data Mapper
            • Date Helper
            • DeepL
            • Delay
            • Discord
            • Discourse
            • Drip
            • Dropbox
            • Dust
            • Facebook Pages
            • Figma
            • Files Helper
            • Flowise
            • Flowlu
            • Formbricks
            • Frame
            • Freshdesk
            • Freshsales
            • GCloud Pub/Sub
            • GenerateBanners
            • GhostCMS
            • GitHub
            • GitLab
            • Gmail
            • Google Calendar
            • Google Contacts
            • Google Docs
            • Google Drive
            • Google Forms
            • Google Gemini
            • Google My Business
            • Google Search
            • Google Search Console
            • Google Sheets
            • Google Tasks
            • Groq
            • Hacker News
            • Heartbeat
            • HubSpot
            • HTTP
            • Image Helper
            • Inputs
            • Instagram for Business
            • Intercom
            • Invoice Ninja
            • Jira Cloud
            • Jotform
            • Kimai
            • Kizeo Forms
            • LeadConnector
            • Line Bot
            • Linear
            • LinkedIn
            • LinkedIn Actions
            • LLMRails
            • Lusha
            • MailerLite
            • Mailchimp
            • Mautic
            • Microsoft Dynamics 365 Business Central
            • Microsoft Dynamics CRM
            • Microsoft Excel 365
            • Microsoft OneDrive
            • Microsoft Outlook Calendar
            • Microsoft Teams
            • Mixpanel
            • MongoDB
            • Notion
            • Odoo
            • OpenAI
            • OpenRouter
            • Pastebin
            • PDF
            • Postgres
            • PostHog
            • Pushover
            • Qdrant
            • Queue
            • Razorpay
            • Router
            • Salesforce
            • SendGrid
            • ServiceNow
            • SFTP
            • SharePoint
            • Slack
            • SMTP
            • Snowflake
            • SOAP
            • Spotify
            • Stability AI
            • Stable Diffusion Web UI
            • Storage
            • Stripe
            • SurrealDB
            • SurveyMonkey
            • Taskade
            • Telegram Bot
            • Text Helper
            • Trello
            • Twilio
            • Twitter
            • Utilities
            • WhatsApp Business
            • WordPress
            • XML
            • YouTube
            • ZBrain
            • Zendesk
            • ZeroBounce
            • Zoho Books
            • Zoho CRM
            • Zoho Invoice
            • Zoom
          • How to Define a Flow?
          • How to Test Each Step in the Flow?
        • Configure Additional Settings
        • Test and Deploy Agents
        • How to access, monitor, and manage agent performance and tasks?
    • Settings
    • 📖API Tutorials
      • 📚Knowledge base
        • Automated Reasoning
      • 📱APP
      • 🤖Agents
Powered by GitBook
On this page
  1. ZBrain Documentation
  2. ZBrain AI agents
  3. Creating custom AI agents
  4. Define Flow
  5. Flow Components

Notion

The Notion piece in ZBrain Flow provides seamless integration with Notion workspaces, allowing you to automate interactions with your Notion databases, pages, and content. This powerful connector enables you to programmatically create, update, and query Notion resources directly from your workflows. With Notion integration, you can build automations that maintain your knowledge base, update project management systems, document processes, and synchronize information between Notion and other platforms without manual intervention.

How to Use Notion in ZBrain Flow?

Step 1: Select Notion as Your Connection

  • Click on the '+' button in the Flow and search for Notion.

  • Select Notion.

  • Decide on the action you need, then select it. ZBrain Flow provides several options:

    • Create Database Item – Adds new entries to your Notion databases.

    • Update Database Item – Modifies existing database entries.

    • Find Database Item – Searches for specific items in your databases.

    • Create Page – Generates new pages within your Notion workspace.

    • Append to Page – Add content to existing Notion pages.

    • Get Block Content – Retrieve content from Notion pages.

    • Custom API Call – Make specialized API requests to Notion.

How to Create a Database Item

Step 1: Connect to Notion

  • Open the ‘Connection’ dropdown and click on ‘Create Connection.’ A popup window appears.

  • Give a unique name for the connection in ‘Connection Name.’

  • Click the ‘Connect’ button to authenticate and link your Notion account.

  • Once connected, click ‘Save’ to complete the setup.

Step 2: Select Target Database

  • Once connected, use the ‘Database’ dropdown to choose which Notion database you want to add an item to. The dropdown will show all databases you have access to in your Notion workspace.

Step 3: Define Item Content

  • In the ‘Content’ field, enter the information for the new database item.

How to Update Existing Notion Database Items

Step 1 & Step 2

For connecting to Notion and selecting your target database, follow the first two steps in the "How to Create a Database Item?" section above.

Step 3: Select the Item to Update

  • From the ‘Database Item’ dropdown, select the specific entry you want to modify. This dropdown will display all existing items in the database you selected.

Step 4: Define the Content to be Updated

  • Enter the new information you want to change in the selected database item.

How to Find Notion Database Item

Steps 1 & 2

  • For connecting to Notion and selecting your target database, follow the first two steps in the "How to Create a Database Item?" section above.

How to Create New Notion Pages

Step 1

  • For connecting to Notion, follow the first step in the "How to Create a Database Item?" section above.

Step 2: Select Parent Page

  • From the ‘Page’ dropdown, select the parent page where you want to create your new page. Note that only your 100 most recently edited pages will appear in this list.

Step 3: Set Page Title

  • In the ‘Title’ field, enter the name for your new page. This will appear as the heading of your page in Notion.

Step 4: Add Page Content

  • In the ‘Content’ field, enter the information you want to include on your page.

How to Add Content to Existing Notion Pages

Steps 1 & 2

  • For connecting to Notion and selecting your target page, follow the same steps as in the "How to Create New Notion Pages" section above.

Step 3: Enter Content to Append

  • In the ‘Content’ field, enter the information you want to add to the existing page. You can use markdown formatting for structured content.

How to Get Block Content

Step 1

  • For connecting to Notion, follow the first step in the "How to Create a Database Item?" section above.

Step 2: Specify Block ID

  • In the ‘Page or parent block ID’ field, enter the ID of the page or block you want to retrieve content from. This can be found in the URL of the Notion page or obtained from previous Notion operations.

Step 3: Configure Output Format

  • Toggle Markdown on if you want the content converted to markdown format.

  • Leave it off to receive the raw Notion block structure in JSON format.

Step 4: Set Retrieval Depth

  • Use the ‘Depth’ field to specify how many levels of nested content to retrieve. The default is 1, which retrieves only top-level blocks.

How to Make Custom API Call

Step 1

  • For connecting to Notion, follow the first step in the "How to Create a Database Item?" section above.

Step 2: Enter API Endpoint

  • In the 'URL' field, enter the full Notion API endpoint you want to call.

Step 3: Select Request Method

  • From the 'Method' dropdown, choose the appropriate HTTP method (GET, POST, PATCH, etc.).

Step 4: Configure Headers (Optional)

  • Click 'Add Item' in the 'Headers' section to add any custom headers. Note that authorization headers are automatically included from your connection.

Step 5: Add Query Parameters (Optional)

  • Click 'Add Item' in the 'Query Parameters' section to add URL parameters. These are useful for filtering, sorting, or limiting results.

Step 6: Specify Request Body (Optional)

  • For POST, PUT, or PATCH requests, enter the JSON body content.

  • This should follow the structure specified in the Notion API documentation.

Step 7: Configure Error Handling (Optional)

  • Enable 'No Error on Failure' if you want the flow to treat error responses as valid.

  • Set a 'Timeout' value (in seconds) to limit how long to wait for a response.

PreviousMongoDBNextOdoo

Last updated 1 month ago

🤖