UCal
  • Welcome
  • 🚀Getting Started
    • Quick Start
      • What is IS-Messenger?
      • Setting Up an Account
      • Connecting Channels
      • Inviting Your Teammates
      • Getting Contacts to Message You
      • Automated Welcome and Away Messages
      • Responding to Messages
      • Glossary of Terms
    • Connecting a Channel
    • Invite your teammates
    • Getting Contacts to Message You
    • Automated Welcome and Away Messages
    • Responding to messages
    • Glossary of Terms
    • Creating a Chatbot
  • ⚙️Workspace Modules
    • Dashboard
    • Inbox
      • Inbox Overview
      • Assignment and closing a conversations
      • Custom Inboxes
      • Interacting with Respond AI Prompts
      • Using AI Assist
    • Contacts
      • Contact Details
      • Contacts Overview
      • Merge Suggestions
      • Contact Activity
      • Contact Channels
      • Contact Import
      • Segments
    • Broadcast
      • Broadcast Overview
      • Managing Broadcasts
    • Workflow
      • Triggers
      • Workflow Step
        • Step: Send a Message
        • Step: Ask a Question
        • Step: Assign To
        • Step: Branch
        • Step: Update Contact Tag
        • Step: Update Contact Field
        • Step: Open Conversation
        • Step: Close Conversation
        • Step: Add Comment
        • Step: Jump To
        • Step: Wait
        • Step: Date & Time
        • Step: HTTP Request
        • Step: Trigger Another Workflow
        • Step: Add Google Sheets Row
        • Step: AI Agent
      • Workflow Templates
    • Reports
      • Reports: Conversations
      • Reports: Responses
      • Reports: Resolutions
      • Reports: Messages
      • Reports: Contacts
      • Reports: Assignments
      • Reports: Leaderboard
      • Reports: Users
      • Reports: Broadcasts
  • ⚙️Workspace Setting
    • Managing a Workspace
    • General
    • Users
      • Access Levels
    • Teams
    • Channels
      • Chat Menus
    • Contact Fields
    • Growth Widgets
      • Website Chat Widget Quick Start
      • Website Chat Widget Overview
      • Workspace Settings: Growth Widgets
      • Install Website Chat Widget on Squarespace
      • Install Website Chat Widget on Joomla
      • Install Website Chat Widget on Wix
      • Install Website Chat Widget on Shopify
      • Install Website Chat Widget on WordPress
      • How to Track Conversation Source from Multiple Websites
    • Respond AI
    • Integrations
      • Dialogflow
        • Dialogflow: Connecting to Dialogflow
        • Dialogflow: Creating a Chatbot
        • Dialogflow : Managing Intents
        • Dialogflow: Parameters
        • Dialogflow: Events
        • Dialogflow: Response Templates
        • Dialogflow: Custom Payloads
        • Dialogflow: Fulfillment Webhook Request
      • E-Commerce & CRM Integrations
        • E-Commerce Integration: Shopify
        • E-Commerce Integration: BigCommerce
        • E-Commerce Integration: WooCommerce
        • E-Commerce Integration: Magento
        • CRM Integration: HubSpot
        • CRM Integration: Salesforce
        • CRM Integration: Pipedrive
        • CRM Integration: ActiveCampaign
      • Zapier
      • Developer API
      • Webhooks
      • Make (formerly Integromat)
    • Closing Notes
    • Snippets
    • Files
    • Data Export
    • Data Import
  • ⚙️User Account
  • Profile
  • User Activity Status
  • Notifications
  • Resetting your Passwords
  • 👨‍👧‍👦CONTACT AND MESSAGES
    • Dynamic Variables
      • Dynamic Variables Overview
      • How to Use Dynamic Variables
    • Contact Search and Custom Inbox
    • Conversations
  • ⚙️MESSAGING CHANNELS
    • Channel Overview
    • Facebook Messenger
      • Facebook Messenger Quick Start
      • Facebook Chat Plugin
      • Private Replies
      • Message Tag
    • Instagram
      • Instagram Overview
      • Instagram Quick Start
    • WhatsApp
      • WhatsApp Business API Quick Start
      • Getting Ready for Inbound Conversations
      • Getting Ready for Promotional Messaging
      • WhatsApp Official Business Account (Green Tick)
      • Grow your WhatsApp Audience by Maximizing Entry Points
      • Get WhatsApp API Account for Government Agencies
      • Meta Business Verification
      • WhatsApp Message Templates
      • WhatsApp Pricing
      • WhatsApp Business Platform (API) Channel Configuration
      • WhatsApp Messaging Limits
      • Meta Product Catalog
      • Change Your WhatsApp Business Display Name
      • Phone Number Migration to IS-Messenger WhatsApp Business API
      • Turn-off WhatsApp Number Two-Step Verification
      • WhatsApp Cloud API
        • Migrating from On-Premises API to Cloud API
        • Migrating from Cloud API to On-Premises API
        • Set up the WhatsApp Echo Bot
        • Load Testing on Cloud API
        • Experiments
        • Webhooks Setup
      • 360Dialog WhatsApp
      • Twillio WhatsApp
      • MessageBird WhatsApp
      • Vonage WhatsApp
      • Phone Number Migration to WhatsApp Cloud API
    • Website Chat Widget
      • Install on WordPress
      • Install on Shopify
      • Install on Wix
      • Install on Squarespace
      • Install Website Chat Widget on Joomla
    • LINE
      • LINE Overview
      • LINE Quick Start
    • Telegram
      • Telegram Overview
      • Telegram Quick Start
    • Viber
      • Viber Overview
      • Viber Quick Start
    • SMS Overview
      • Twilio SMS Quick Start
        • Importing Contacts to Twilio SMS
      • MessageBird SMS Quick Start
      • Vonage SMS Quick Start
    • Twitter Overview
      • Twitter Quick Start
    • WeChat
      • WeChat Overview
      • WeChat Quick Start
    • Google Business Message
    • Email
      • Google Workspace Quick Start
      • Other Email
    • Custom Channel
      • Custom Channel Overview
      • Custom Channel Quick Start
  • New Release Update
  • Support Use Cases
    • How to Identify Contacts by Email and Phone NumberI
    • How to Enrich Customer Data from a CRM or other Business Software
    • How to Route Customers to the Right Team Automatically
    • How to Auto-Assign Customers to a Team or Dedicated Agent
    • How to Send Outbound Support Messages
    • Support: Closing Conversations
    • How to Supervise Your Support Agents
    • How to Analyze Reports for Support
    • How to Send CSAT to Customer and Save Data in Google Sheets or CRMs
  • Handling Inbound Conversations
    • Managing Spam
    • Create Automated Welcome and Away Messages
    • Get Contacts’ Consent for Personal Data Collection
    • Create Automated Chat Menus
    • Collect Contacts’ Emails and Phone Numbers
    • Route Contacts by Shifts
    • Route Contacts by Team Functions
    • Route New & Returning Contacts
    • Route VIP Contacts
    • Assignment Strategy: Automatic Contact Distribution & Load Balancing
    • Assignment Strategy: Unassign Agents after Conversations Closed
  • Capture Conversations
    • How to Streamline Meeting Scheduling via CTC Ads
    • How to Automate Product Info Sharing in Conversations Initiated via CTC Ads
    • How to Track Conversation Source from Multiple Websites
    • How to Route Contacts from CTC Ads to Agents
  • Automate Conversations
    • How to Maximize Customer Service Potential with AI Agent
    • How to Automate Contact Information Collection with AI
    • How to Route Contacts to Preferred AI Agent
    • How to Automatically Qualify Contacts Based on Budget Using AI Agent
    • How to Route Contacts by their Preferred Language
    • How to Create Automated Chat Menus
    • Assignment Strategy: How to Automate Contact Distribution & Load Balancing
    • Assignment Strategy: Unassign Agents after Conversations Closed
    • How to Create Automated Welcome and Away Messages
    • How to Block Contacts and Manage Spam
    • How to Route New and Returning Contacts
    • How to Collect Contacts’ Emails and Phone Numbers
    • How to Route New and Returning Contacts
    • How to Route Contacts by Team Functions
    • How to Route Contacts by Shifts
    • How to Get Contacts’ Consent for Personal Data Collection
    • How to Route VIP Contacts
  • How to Promptly Transfer Conversation Between Agents
  • How to Guide Customers from Exploration to Purchase with Engaging Menus
  • How to Optimize Customer Onboarding with Automated & Customized Welcome Messages
  • Converse with Customers
    • How to Get a Complete View of the Customers
    • How to Simplify Customer Escalation with Automation
    • How to Transfer Contacts to the Next Shift Automatically
    • How to Optimize Agents’ Productivity in the Messages Module
    • How to Align AI Conversations with Your Brand Voice
    • How to Draft Customer Replies with AI
    • How to Convert Image to Text Using AI
    • How Automate Calculations Using AI
  • Broadcasts Use Cases
    • How to Sending a Simple Broadcast
    • How to Start a Workflow Based on Broadcast Response
    • How to Import to Broadcast via WhatsApp
    • How to Troubleshoot a Failed Broadcast
  • Sales Use Cases
    • How to Collect Leads' Email and Phone Number
    • How to Enrich Contact Data and Qualify Leads
    • How to Route Leads
    • How to Auto-Assign Leads to Sales Agents
    • How to Send Outbound Sales Messages
    • How to Track Productivity by Closing Conversations
    • How to Supervise Sales Agents
    • How to Analyze Reports for Sales
  • Accessing Help Menu
Powered by GitBook
On this page
  • Viewing Intents
  • Default Intents
  • Default Welcome Intent
  • Default Fallback Intent
  • Creating an Intent
  • Creating a Basic Intent
  • Creating an Entity
  • Creating an Intent with Parameters
  • Saving a Value as a Custom Field
  • Adding a Tag
  • Handing Off the Conversation
  • Disabling the bot
  • Location Handling
  • Testing an Intent
  • Deleting an Intent
  1. Workspace Setting
  2. Integrations
  3. Dialogflow

Dialogflow : Managing Intents

PreviousDialogflow: Creating a ChatbotNextDialogflow: Parameters

Last updated 1 year ago

What is an Intent?

Dialogflow's definition of Intent:

An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression, Dialogflow matches the end-user expression to the best intent in your agent. Matching an intent is also known as intent classification.

A basic intent contains the following :

  • Training phrases - These are example phrases for what end-users might say. When an end-user expression resembles one of these phrases, Dialogflow matches the intent.

The template phrases will be deprecated and ignored during training. Learn more .

  • Action - You can define an action for each intent. When an intent is matched, Dialogflow provides the action to your system, and you can use the action to trigger certain actions defined in your system.

  • Parameters - When an intent is matched at runtime, Dialogflow provides the extracted values from the end-user expression as parameters. Each parameter has a type, called the entity type, which dictates exactly how the data is extracted.

  • Responses - You define text, speech, or visual responses to return to the end-user. These may provide the end-user with answers, ask the end-user for more information, or terminate the conversation.

A more complex intent may also contain the following:

  • Contexts: Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what the person is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent.

  • Events: With events, you can invoke an intent-based on something that has happened, instead of what an end-user communicates.

The intents can be triggered based on your contacts' Country and Language. If your contact has a country or language value present in their contact details, the intents can be triggered based on the different values of country and language.

Viewing Intents

Step 1: Login to Dialogflow

Navigate to the console and login with your user credentials.

Step 2: Navigate to Intents

Select the agent you would like to configure and select Intents from the side navigation menu

All the default intents and created intents will be listed in this view.

Default Intents

When you create an agent, two default intents will be created for you by Dialogflow.

  • Default Welcome Intent: This intent is matched when the contact begins a conversation with the platform. This intent should return a response that lets the end-user know what your agent does or what they can say to begin a conversation.

  • Default Fallback Intent: This intent is matched when the agent cannot match the end-user expression to any other intent.

Default Welcome Intent

As you can see, the Default Welcome Intent has a pre-requisite of Welcome event and greetings phrases. When a contact messages you for the first time, this intent will be matched according to what was specified.

Refer to the following example:

Suggestion: To manage Contact's expectations, we suggest including responses that inform the contact that they are interacting with a chatbot.

Default Fallback Intent

When the incoming message or event does not match any of the existing intents, a fallback intent will be matched instead.

Refer to the following example :

Suggestion: If the Agent cannot understand the message, the Agent should offer to hand off the conversation to a live agent to help with the contact's issue.

Creating an Intent

You can create new intents if you would like to create automated processes for specific use cases. With Parameters and Events, intents can be created to suit multiple use cases.

In order to help you better understand, the following guide will be based on a specific use case as described below:

Company XYZ often receives queries on order status from the website's webchat. As they were going through the conversations, they detected a common pattern where their agents would ask for the customer's customer ID to further check the issue or resolve the enquiry. Once they obtained the customer ID from the customer, they would update the custom field and add it as a tag.

Based on the scenario above, the process of obtaining the customer ID can be done by the chatbot. Once the customer ID is obtained, the contact will be handoff to a human agent for further assistance.

Let's break it down into simpler steps:

  1. Create an intent to prompt for customer ID.

  2. Create an intent to obtain the customer ID.

  3. Save the customer ID as a custom field on IS-Messenger.

  4. Add a tag.

  5. Hand off the conversation to a human agent.

  6. Notify the human agent.

  7. Disable the bot.

Creating a Basic Intent

Step 1: Create Intent

or CREATE INTENT from the top of the module.

Step 2: Name your Intent

Enter a name for your intent. Your intent name should represent the end-user expressions it recognizes.

For this scenario, we'll name it order_status_enquiry.

Step 3: Include Training Phrases

Based on the scenario above, we should include training phrases that asked for order status specifically. Start by typing in the placeholders in Training Phrases section. You can include multiple phrases to cater for different type of phrases.

For example:

where is my order

could you help me check my order please

what is the status of my order

Step 4: Build Intent Response

For this intent, the response should prompt the Contact for their customer ID to be used for the following intent.

Scroll down to the Responses section and type in the response. You can either add a Text Response or Custom Payload. For this scenario, Text Response will serve the purpose.

Tips: You can send multiple responses at one time for better readability. You may add a few variants of the response and they will be randomized when sent to Contacts.

The response we will build for this intent is:

I apologize in advance if your order is taking too long.

Can I have your customer ID please?

Creating an Entity

Before we can save the value as a custom field, we will need to create an entity to detect the value from incoming messages.

Based on the scenario above, we will name this entity as customerId and it will be used to store the customer ID for a customer.

Step 1: Create an Entity

Navigate to the Entities module. Press on the ➕ or CREATE ENTITY.

Step 2: Name the Entity

For this example, we will name it customer_id.

Step 3: Enter the possible values

The entity should accept a string with 5 integers in length. Regular expression will be applied to validate the value.

For this example, the value will be (\d){5} that accepts any string with 5 digits.

Creating an Intent with Parameters

Step 1: Create Follow Up Intent

A follow-up intent is used instead because this intent will need to be triggered after the specified intent.

By default, the context and action will be populated by default so that the intent will work in sequence.

Step 2: Include Training Phrases

The phrases to include in this intent will most likely be phrases that contain the customer ID. We can input a phrase and highlight the text that is likely to be the customer ID. Select the entity created earlier and annotate the text with it.

By default, a parameter will be created when you annotate a text with an entity so store the values.

Step 3: Build Intent Response

For this intent, the response should inform the contact that the customer ID has been received and a human agent will take over the conversation and resolve the issue.

Scroll down to the Responses section and type in the response. Add a Text Response.

The response we will build for this intent is :

Thanks for providing your customer ID. Your issue is being assigned to our human agents.

Saving a Value as a Custom Field

When the contact responds with their customer ID, the value can be saved as a custom field in IS-Messenger platform.

In order to save the value to a custom field, please ensure the custom field is created on the IS-Messenger platform.

To save the value, add a parameter RB_FIELD_{custom field's name}. In this case, the parameter will be RB_FIELD_customerid and set the entity $customer_id as the value.

Adding a Tag

Add a parameter RB_ADDTAGS and set the entity $customer_id as the value

Handing Off the Conversation

Now, we want to hand off the conversation to a human agent. This can be achieved with another parameter, RB_USER_ASSIGN and set the user's email as the value

Disabling the bot

The parameters will be executed in sequence. Lastly, we will disable the bot response for this contact because we do not want any intent to be triggered when the contact is handled by a human agent.

To do so, we will add another parameter, RB_BOTSTATUS and set FALSE as value.

When a bot is disabled, contacts can no longer receive messages from the bot until the bot status is enabled. The bot status can be enabled manually through the messaging console or via automation.

Location Handling

When a location is received from a contact, an event of type LOCATION will be sent to Dialogflow. You may add LOCATION to the events to trigger the respective triggers.

Check out the other parameters available to use in Dialogflow:

Testing an Intent

If you need to test the intent, use the Testing panel located at the right side of Dialogflow console.

Deleting an Intent

From the intent list, hover over the intent you wish to delete. Press the trash icon of the intent.

Tip: Learn more about .

Tip: Learn more about Dialogflow's .

Navigate to the and press Intents from the side navigation menu. Press the ➕

Tip: Learn more about .

Tip: Learn more about .

Tip: Learn more about .

Navigate to the and press Intents from the side navigation menu. Locate the previous intent created and press Add follow-up intent.

Tip: Learn more about .

⚙️
here
Dialogflow
Dialogflow's definition of Default Welcome Intent
definition of Default Fallback Intent
Dialogflow console
response templates here
regular expressions here
entities here
Dialogflow console
annotating training phrases here
Dialogflow: Parameters
gif showing dialogflow fallback intent in a respond.io webchat box
dialogflow's default fallback intent
screenshot showing how to create an intent in dialogflow
screenshot of the dialogflow intents page
screenshot showing how to add customer id as an entity in dialogflow
screenshot of dialogflow settings for adding intent responses
adding training phrases to a follow up intent
how to add a follow up intent in dialogflow
screenshot showing dialogflow default welcome intent
gif showing a default welcome generated by dialogflow in a respond.io webchat
screenshot showing how to save a custom field in dialogflow
screenshot of dialogflow default text response
screenshot showing how to add tags in dialogflow
screenshot of how to add a parameter to assign to a user in dialogflow
screenshot of adding location to dialogflow intent
screenshot of adding intent training phrases in dialogflow
dialogflow option to test an intent
gif showing how to delete an intent in dialogflow
screenshot showing how to create a dialogflow entity
screenshot of how to disable a dialogflow bot after the conversation is handed off