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
  • How to Use SendGrid in ZBrain Flow
  • How to Send an Email Using SendGrid in ZBrain Flow
  • How to Send an Email Using a Dynamic Template in SendGrid
  • How to Make a Custom API Call Using SendGrid in ZBrain Flow
  1. ZBrain Documentation
  2. ZBrain AI agents
  3. Creating custom AI agents
  4. Define Flow
  5. Flow Components

SendGrid

The SendGrid piece in ZBrain Flow allows you to send emails effortlessly, whether as plain text, HTML content, or using dynamic templates. This integration enables seamless email automation for notifications, transactional messages, and marketing campaigns. Additionally, you can use custom API calls to interact with SendGrid’s advanced features.

How to Use SendGrid in ZBrain Flow

Select SendGrid as Your Connection

  1. Click on the ‘+’ button in the Flow.

  2. Search for ‘SendGrid’ and select it.

  3. Choose the action you want to perform. ZBrain Flow provides the following options:

    • ‘Send Email’ – Send a plain text or HTML email.

    • ‘Send Dynamic Template’ – Send an email using a predefined SendGrid template.

    • ‘Custom API Call’ – Send a request to a specific SendGrid API endpoint.

How to Send an Email Using SendGrid in ZBrain Flow

Step 1: Create a SendGrid Connection

  1. In the ‘API Key’ dropdown, click on 'create connection'.

  2. A small window will appear. Fill in the following details:

    • ‘Connection Name’ – Enter a name for this SendGrid connection.

    • ‘API Key’ – Obtain your API key from your SendGrid API settings and enter it here.

  3. Click ‘Save’ to create the connection.

Step 2: Configure Email Sending Options

  1. In the ‘To’ field, click ‘Add Item’ and enter the recipient’s email address.

  2. In the ‘From (Email)’ field, enter the sender’s email (must be verified in SendGrid).

  3. (Optional) In the ‘From (Name)’ field, enter the sender’s name.

  4. (Optional) In the ‘Reply To’ field, enter the email address where replies should be sent (defaults to the sender).

  5. In the ‘Subject’ field, enter the email subject.

  6. In the ‘Content Type’ field, select ‘Plain Text’ or ‘HTML’.

  7. In the ‘Content’ field, enter the email body. If HTML is selected, ensure the content is in HTML format.

How to Send an Email Using a Dynamic Template in SendGrid

Step 1: Create a SendGrid Connection

  1. Follow the steps from ‘Step 1: Create a SendGrid Connection’ in the previous walkthrough, 'How to Send an Email Using SendGrid in ZBrain Flow'.

Step 2: Configure Dynamic Template Email Options

  1. In the ‘To’ field, click ‘Add Item’ and enter the recipient’s email address.

  2. (Optional) In the ‘From (Name)’ field, enter the sender’s name.

  3. In the ‘From (Email)’ field, enter the sender’s email (must be verified in SendGrid).

  4. In the ‘Template Id’ field, enter the ID of the SendGrid dynamic template you want to use.

  5. In the ‘Template Data’ field, provide the JSON structure with values to populate in the template.

  6. (Optional) In the ‘Reply To’ field, enter the email address where replies should be sent (defaults to the sender).

How to Make a Custom API Call Using SendGrid in ZBrain Flow

Step 1: Create a SendGrid Connection

  1. To create a SendGrid connection, follow the steps from ‘Step 1: Create a SendGrid Connection’ in the previous walkthrough, 'How to Send an Email Using SendGrid in ZBrain Flow'.

Step 2: Configure the API Call

  1. In the ‘URL’ field, enter the base URL https://api.sendgrid.com/v3 and append the specific endpoint you want to call (e.g., /mail/send).

  2. In the ‘Method’ field, select the HTTP method (e.g., GET, POST, PUT, DELETE).

  3. (Optional) In the ‘Headers’ section, click ‘Add Item’ to add any additional headers required for the request. The authorization headers are injected automatically from your connection.

  4. (Optional) In the ‘Query Parameters’ section, click ‘Add Item’ to include any query parameters needed for the request.

  5. (Optional) In the ‘Body’ section, enter the request payload if required (e.g., JSON data for sending an email).

Step 3: Set Additional Options

  1. (Optional) Enable ‘No Error on Failure’ if you want the workflow to continue running even if the request fails.

  2. (Optional) In the ‘Timeout (in seconds)’ field, specify a timeout duration for the request.

PreviousSalesforceNextServiceNow

Last updated 1 month ago

🤖