Chatlayer Documentation
Get in touchAbout Chatlayer
  • Welcome
  • What's new
  • Send feedback
  • start quickly
    • Leadzy tutorial
      • 0. Introduction
      • 1. New bot, new block
      • 2. Understand your users
      • 3. Collect and display user input
      • 4. Steer the conversation with Conditions
      • 5. Empower your bot with Actions
      • 6. Set up a channel and publish your bot
    • Templates
      • Banking
      • E-Commerce Returns
      • E-Bike Shop
      • E-Scooter Support
      • Feedback
      • Find Nearest Location
      • GPT
      • 🆕Gym
      • Job applications
      • Knowledge base AI template
      • Lead generation
      • 🆕NPS
      • Restaurant
      • Retail
  • navigation
    • Analytics
      • Dashboard
      • Customers
      • Conversations
      • User flow
      • Intents
      • 🆕Funnels [Beta]
    • Bot builder
      • Flows
        • Canvas functionalities
        • Collaborate with team members
        • Manage your flows
        • 🆕[Beta] Export and import flows
      • Bot dialogs view
      • Translations
      • Events
    • NLP
      • Dashboard
      • Intents
      • Expressions
      • Entities
      • Train
      • NLP settings
      • Improve
    • Knowledge base AI
      • Add content to your KBAI
      • Build your KBAI flow
      • Use your KBAI source URL in a button
      • Use tags to limit your KBAI content
      • 🆕Use Tables to store your KBAI questions
      • 🆕Manage handover where KBAI is unsatisfactory
    • History
      • Conversations
      • Execution logs
      • Versions
    • Channels
    • Tables
      • Create a table with records
      • Column types
      • Operate on your records
        • Insert record
        • Update record
        • Retrieve record
        • Delete record
      • API
    • Settings
      • Bot settings
      • Offloading
      • Variables
      • Voice
      • Import/Export
  • build your bot
    • Conversation design
      • Plan your bot
      • Conversation design workflow
    • Flow logic
      • Blocks
        • Message
        • Condition
        • Collect input
        • Action
      • Go-to connections
    • 🆕Emulator
    • Tips & best practices
      • Route your flow depending on the time
      • Improve the Not understood block
        • How to create better not understood messages
        • Not understood counter
        • Not understood Google search
      • Go to previous block
      • Recognizing a returning user
      • Skip introduction message
      • Route your flow depending on the channel
      • Reuse flows
      • Connect two bots to each other
  • understand users
    • Natural language processing (NLP)
      • Basic NLP concepts
      • Detect information with entities
        • Match entities
        • Contextual entities
        • System entities
        • Composite entities
      • NLP best practices
        • Word order and diversity of expressions
      • AI intent booster
      • Train your NLP
      • Context
      • NLP import & export
      • Sentiment analysis
    • Languages
      • Supported languages
      • Make your bot multilingual
      • Change language within the conversation
  • set up channels
    • Add a channel to your bot
    • All channels
      • 🚨Facebook Messenger [Deprecated soon]
        • Facebook Admin Removal
        • Facebook Webview Whitelisting
        • Facebook Messenger API updates for Europe
      • 🚨Google Assistant [Deprecated soon]
      • Webhook
      • Web
        • 🚨Web V1 [Deprecated]
          • Customize web widget
          • Live example web widget
        • 🆕Web V2
          • 🆕From Web V1 to V2
          • 🆕Web V2 methods and options
    • Sinch Conversation API
      • Configure your Sinch Conversation API
      • 🆕 Make the most of RCS with Carousels
      • WhatsApp Business API
  • integrate & code
    • API calls
      • Configure your API integration
      • Advanced API features
      • V1 API Reference
      • Custom integrations 101
    • Code editor
      • [Example] Sending data to Airtable (POST)
      • [Example] Retrieving data from Airtable (GET)
      • [Example] Making SOAP requests
    • App integrations
      • Airtable
      • Freshdesk
      • Freshdesk Messaging
      • 🆕Gmail
      • Intercom
      • Mailgun
      • OpenAI: GPT-3, ChatGPT and GPT-4
      • Salesforce
      • 🆕Slack
      • Topdesk
      • Zendesk Support
      • Zendesk Sunshine (beta)
    • 🆕Expression syntax
    • Human handover & live chat
      • Sinch Contact Pro
      • #Interact
      • Genesys Cloud
      • Offloading Webhook
      • Salesforce Service Cloud
      • Sparkcentral by Hootsuite
      • Zendesk Chat
    • Chatlayer messages specifications
  • Publish
    • Publish your bot
      • Publish a flow
  • Analyze & maintain
    • Analytics definitions
    • Data retention
    • Maintenance
    • Session
    • Track events for analytics
  • VOICE
    • 🆕Send bot response as audio
    • Voicebots
      • Create a voicebot
      • Voicebot-specific actions
      • Test your voicebot
      • From chat to voice
  • access & support
    • Identity & Access
      • Single Sign-On (SAML SSO)
    • Billing & subscription
    • Get in touch
    • Chatlayer glossary
    • SaaS Regions & IP Ranges
    • Status
    • Debug your bot
      • No correct response
      • Collect input not working
      • Video isn't working
Powered by GitBook
On this page
  • Add Gmail Action to your flow
  • Configure your Gmail account
  • Compose your Email
  • Handling the response

Was this helpful?

  1. integrate & code
  2. App integrations

Gmail

Lean how to integrate Gmail to your chatbot with an Action block.

PreviousFreshdesk MessagingNextIntercom

Last updated 1 year ago

Was this helpful?

This guide explains how to enhance your chatbot by integrating Gmail for sending emails, making it a versatile tool for communication and automation.

The Gmail feature shouldn't be confused with the step, which allows you to send emails that are Chatlayer-branded. With the Gmail integration, you can send emails directly from your own Gmail account.

Add Gmail Action to your flow

  1. Within your chatbot's workflow, locate and add a new Action block.

  2. Choose Integrations from the options available and then select the Gmail app.

  1. You will be presented with an Action field. Select Send Email to proceed.

Configure your Gmail account

  1. In the Gmail account section, click on Connect new account to connect your account.

  1. Follow the on-screen instructions to authorize your chatbot to access the Gmail account. This process may require you to log in to your Gmail account and grant specific permissions.

Compose your Email

  1. In the Action fields, locate the To input field to specify the recipient(s) of the email. There are 2 possibilities:

    • If your bot has already collected the user's email address and saved it in a variable (e.g., {userEmailAddress}), you can use this variable directly.

    • Alternatively, you can manually type the email addresses of the recipients, separating multiple addresses with commas.

  1. In the Subject field, personalize the email subject based on the interaction context. For instance, if you're sending a gym class booking confirmation, use the variable {className} to dynamically insert the class name. An example subject could be 🧘‍♂️Your {className} Class Booking Confirmation.

  1. Compose the body of your email in the Email content field. Use variables to personalize the email content with information collected by the bot, such as booking details for a gym class.

Handling the response

  1. Specify a destination variable name where the response from Gmail will be stored. This is useful for tracking the success or failure of the email sending operation.

  2. Optionally, select a block to handle situations where the operation fails, allowing for graceful error handling within your chatbot flow. For instance, in this example, we used the Error occurred block.

  1. After completing the setup and configuration, ensure to click Save to apply your changes.

By following these detailed steps, you can empower your chatbot with the ability to send emails via Gmail, enhancing its utility and your users' experience.

🆕
Send mail Action
Select Gmail under Integrations
Select Send Email
Click on Connect new account to connect your account.
Specify email recipients
Email subject text field
Email content text field
Specify destination variable and select block to handle on failure