Nova release '25: 25+ powerful upgrades, from intelligent automation to deeper insights. See what's new

Skip to product menu
close
EXPLORE ALL PRODUCTS

Sales

CRM

Comprehensive CRM platform for customer-facing teams.

CRM
Voice

Cloud Contact Center Software for businesses.

Voice
Sign

Digital signature app for businesses.

Sign
Forms

Build online forms for every business need.

Forms
Bigin

Simple CRM for small businesses moving from spreadsheets.

Bigin
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
Bookings

Appointment scheduling app for consultations with customers.

Bookings
RouteIQ

Comprehensive sales map visualization and optimal route planning solution.

RouteIQ
Thrive

Loyalty platform to reward, retain, and grow your customer base.

Thrive
Suites
CRM Plus

Unified platform to deliver top-notch customer experience.

CRM Plus

Marketing

Campaigns

Create, send, and track targeted email campaigns that drive sales.

Campaigns
Voice

Cloud Contact Center Software for businesses.

Voice
Sign

Digital signature app for businesses.

Sign
Forms

Build online forms for every business need.

Forms
Social

All-in-one social media management software.

Social
Survey

Design surveys to reach and interact with your audience.

Survey
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
Sites

Online website builder with extensive customisation options.

Sites
Backstage

End-to-end event management software.

Backstage
PageSense

Website conversion optimization and personalisation platform.

PageSense
Marketing Automation

All-in-one marketing automation software.

Marketing Automation
LandingPage

Smart landing page builder to increase conversion rates

LandingPage
Webinar

Webinar platform for webcasting online webinars.

Webinar
NEW
LeadChain

Sync, manage, and convert leads across channels seamlessly.

LeadChain
NEW
Domains

Easy domain registration, transfer, and secured DNS management.

Domains
NEW
CommunitySpaces

Online community platform for individuals and businesses to grow their network and brand.

CommunitySpaces
Thrive

Loyalty platform to reward, retain, and grow your customer base.

Thrive
Publish

Manage all your local business listings on a single platform.

Publish
Suites
Marketing Plus

Unified marketing platform for marketing teams.

Marketing Plus

Commerce and POS

Commerce

eCommerce platform to manage and market your online store.

Commerce

Service

Desk

Helpdesk software to deliver great customer support.

Desk
Assist

Remote support and unattended remote access software.

Assist
Voice

Cloud Contact Center Software for businesses.

Voice
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
Bookings

Appointment scheduling app for consultations with customers.

Bookings
FSM

End-to-end field service management platform for service businesses.

FSM
Lens

Interactive remote assistance software with augmented reality.

Lens
Solo

The all-in-one toolkit for solopreneurs.

Solo
Suites
Service Plus

Unified platform for customer service and support teams.

Service Plus

Finance

Books

Powerful accounting platform for growing businesses.

Books
Expense

Effortless expense reporting platform.

Expense
Sign

Digital signature app for businesses.

Sign
Inventory

Powerful stock management and inventory control software.

Inventory
FREE
Invoice

100% Free invoicing solution.

Invoice
Billing

End-to-end billing solution for your business.

Billing
NEW
Payroll

Payroll software with automated tax payments and filing.

Payroll
Commerce

eCommerce platform to manage and market your online store.

Commerce
Checkout

Collect payments online with custom branded pages.

Checkout
Practice

Practice management software for accounting firms.

Practice
Solo

The all-in-one toolkit for solopreneurs.

Solo
NEW
Payments

Unified payment solution built for all businesses.

Payments
Suites
Finance Plus

All-in-one suite to manage your operations and finances.

Finance Plus

Email, Storage, and Collaboration

Mail

Secure email service for teams of all sizes.

Mail
Voice

Cloud Contact Center Software for businesses.

Voice
Sign

Digital signature app for businesses.

Sign
WorkDrive

Online file management for teams.

WorkDrive
Bookings

Appointment scheduling app for consultations with customers.

Bookings
Cliq

Stay in touch with teams no matter where you are.

Cliq
Notebook

Beautiful home for all your notes.

Notebook
Meeting

Online meeting software for all your video conferencing & webinar needs.

Meeting
Connect

Employee experience platform to communicate, engage, and build positive employee relations.

Connect
Learn

Knowledge and learning management platform.

Learn
Office Integrator

Built in document editors for web apps.

Office Integrator
Writer

Word processor for focused writing and discussions.

Writer
TeamInbox

Shared inboxes for teams.

TeamInbox
ZeptoMail

Secure and reliable transactional email sending service.

ZeptoMail
Show

Create, edit, and share slides with a sleek presentation app.

Show
Tables

Work management tool to connect people, processes, and information.

Tables
Sheet

Spreadsheet software for collaborative teams.

Sheet
Office Suite

Powerful collaborative work platform for teams.

Office Suite
Calendar

Online business calendar to manage events and schedule appointments.

Calendar
ToDo

Collaborative task management for individuals and teams.

ToDo
FREE
PDF Editor

Collaborative online PDF editing tool.

PDF Editor
Suites
Workplace

Application suite built to improve team productivity and collaboration.

Workplace

Human Resources

Expense

Effortless expense reporting platform.

Expense
Recruit

Intuitive recruiting platform built to provide hiring solutions.

Recruit
People

Organize, automate, and simplify your HR processes.

People
Sign

Digital signature app for businesses.

Sign
NEW
Payroll

Payroll software with automated tax payments and filing.

Payroll
Shifts

Employee scheduling and time tracking app.

Shifts
Workerly

Manage temporary staffing with an employee scheduling solution.

Workerly
Suites
People Plus

Comprehensive HR platform for seamless employee experiences.

People Plus

Security and IT Management

Creator

AI-powered platform to build custom business apps.

Creator
Assist

Remote support and unattended remote access software.

Assist
Vault

Online password manager for teams.

Vault
Directory

Workforce identity and access management solution for cloud businesses.

Directory
Lens

Interactive remote assistance software with augmented reality.

Lens
QEngine

Test automation software to build, manage, execute, and report testcases.

QEngine
Catalyst

Pro-code platform to build and deploy your apps.

Catalyst
RPA

Automate manual, tedious, and repetitive tasks easily.

RPA
NEW
eProtect

Comprehensive email security and archiving for every business.

eProtect
FREE
OneAuth

Secure multi-factor authenticator (MFA) for all your online accounts.

OneAuth
Toolkit

Complete resource for any admin-related lookup queries.

Toolkit

BI and Analytics

Analytics

Modern self-service BI and analytics platform.

Analytics
DataPrep

AI-powered ETL tool for effective data integration and movement.

DataPrep
IoT

Harnessing IoT analytics for real-time operational intelligence.

IoT
Embedded BI

Embedded analytics and white label BI solutions, tailored for your needs.

Embedded BI

Project Management

Projects

Manage, track, and collaborate on projects with teams.

Projects
Sprints

Planning and tracking tool for scrum teams.

Sprints
BugTracker

Automatic bug tracking software for managing bugs.

BugTracker
Solo

The all-in-one toolkit for solopreneurs.

Solo
Suites
Projects Plus

Unified project management platform for intelligent, data-driven work.

Projects Plus

Developer Platforms

Creator

AI-powered platform to build custom business apps.

Creator
Flow

Automate business workflows by creating smart integrations.

Flow
Office Integrator

Built in document editors for web apps.

Office Integrator
DataPrep

AI-powered ETL tool for effective data integration and movement.

DataPrep
ZeptoMail

Secure and reliable transactional email sending service.

ZeptoMail
Tables

Work management tool to connect people, processes, and information.

Tables
QEngine

Test automation software to build, manage, execute, and report testcases.

QEngine
Catalyst

Pro-code platform to build and deploy your apps.

Catalyst
RPA

Automate manual, tedious, and repetitive tasks easily.

RPA
IoT

Build, deploy, and scale IoT solutions for connected businesses.

IoT
Apptics

Application analytics for all apps.

Apptics
Embedded BI

Embedded analytics and white label BI solutions, tailored for your needs.

Embedded BI

IoT

IoT

Low-code IoT platform and solutions for connected businesses.

IoT
CRM Plus

Unified platform to deliver top-notch customer experience.

Try now
CRM Plus
Service Plus

Unified platform for customer service and support teams.

Try now
Service Plus
Finance Plus

All-in-one suite to manage your operations and finances.

Try now
Finance Plus
People Plus

Comprehensive HR platform for seamless employee experiences.

Try now
People Plus
Workplace

Application suite built to improve team productivity and collaboration.

Try now
Workplace
Marketing Plus

Unified marketing platform for marketing teams.

Try now
Marketing Plus
Projects Plus

Unified project management platform for intelligent, data-driven work.

Try now
Projects Plus
All-in-one suite

Zoho One

The Operating System for Business

Run your entire business on Zoho with our unified cloud software, designed to help you break down silos between departments and increase organizational efficiency.

TRY ZOHO ONE
Zoho Marketplace

With over 2000 ready-to-use extensions across 40+ categories, connect your favorite business tools with the Zoho products you already use.

EXPLORE MARKETPLACE
Skip to main content

​Basics of Dialogflow

If you are new to Dialogflow, you can learn the basics here and implement your bot agents with Dialogflow and integrate them with Zobot.

Creating a Bot Agent Dialogflow and Integrating it with the Zobot

To create a Dialogflow agent:

  • In the Dialogflow console, click Create Agent on the left of the screen.
  • Enter a name for your agent, choose the language (you can add more languages to your agent right after creating one) and time zone, then click Create button.

Note: SalesIQ does not support some languages that are supported by Dialogflow. If the Dialogflow bot agent language is not supported, then SalesIQ will pick the default language.  
The Languages we support are listed in the table below: 

LanguagesCodeLanguagesCodeLanguagesCodeLanguagesCode
ArabicarJapanesejaGreekelIrishga
ChinesezhHungarianhuSpanishesRomanianro
DanishdaNorwegiannbAbritiwItalianit
DutchnlPolishplSwedishsvGermande
EnglishenPortugeseptThaithRussianru
FrenchfrPortugese-Brazilianpt-BRIndonesianidTurkishtr

Also Remember that, Chinese does not have a default locale in Dialogflow. So the locale for Chinese and the locale for all the other languages supported by dialogflow will be based on the visitor IP address.

The dialogflow bot language to respond to the visitor is chosen based on the following condition. The Dialogflow bot checks in the given order, and chooses the bot language to converse with the visitors:

If you wish your dialogflow bot to interact with the visitors based on the visitor's language/browser settings, then do the following:

  • If you've added the language preference JSAPI script, remove them from the website.
  • If you have chosen a specific language for your chat window in the Modify the Chat Window Language section, then change the option to Website Language.
  • If you've added any language attribute to the website HTML, remove them.

Integrating Dialogflow bot agent with SalesIQ bot:

  • Once the bot agent is created in Dialogflow, it will be reflected in the Zobot dashboard. If you have more than one bot agent, they will appear in the drop-down and you can choose one among them.

Creating Intents

Intents are used to categorize the user's intentions. You can also use training phases to define what the user might ask your bot agents.

To create an intent:

  • In the Dialogflow console, click (+) plus next to Intents in the left menu.
  • Click above the Intent Name to add a name.
  • In the Training Phrases section, enter the questions your users might ask the Agents.
  • In the Responses section, click on the text field and enter the responses you would like to provide for the questions the users ask.
  • Finally, click Save.

Fulfillment

Fulfillment is the code that's deployed as a webhook and lets your Dialogflow agent call business logic on an intent-by-intent basis. During a conversation, fulfillment allows you to use the information extracted by Dialogflow's natural language processing to generate dynamic responses or trigger actions on your back-end.  Learn more.

There are two ways of creating a fulfillment:

1. Webhooks

In Webhooks, there will be a personal server URL to which all queries will be redirected. After receiving a request, the webhook can perform any required tasks. For example, the webhook might use information from the request to look up a product in a database or place an order.Finally, your webhook should respond back with instructions for what Dialogflow should do next. Learn more.

Note: They use Dialogflow formats to draft and send out responses

2. Inline Editor

The Inline editor is similar to DRE scripts. We define responses in the editor for each intent separately as functions inside which we can set the following responses for an agent

  • Text
  • Cards
  • Suggestions
  • Custom payload

The following is an example of how responses have to be structured:

const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');

const TextResponse = require('dialogflow-fulfillment/src/rich-responses/text-response');
const CardResponse = require('dialogflow-fulfillment/src/rich-responses/card-response');
const SuggestionsResponse = require('dialogflow-fulfillment/src/rich-responses/suggestions-response');
const PayloadResponse = require('dialogflow-fulfillment/src/rich-responses/payload-response');
const PLATFORMS = require('dialogflow-fulfillment/src/rich-responses/rich-response');

process.env.DEBUG = 'dialogflow:debug'; // enables lib debugging statements

exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => {
  const agent = new WebhookClient({ request, response });

 
  function welcome(agent) {
    agent.add(`Welcome to my agent!`);
    agent.add(new TextResponse('Hey there! Looking out for the best courses for your educational qualification? I can help! '));

    //card
    agent.add(new Card({
             title: `Title: this is a card title`,
             imageUrl: 'https://developers.google.com/actions/images/badges/XPM_BADGING_GoogleAssistant_VER.png',
             text: `This is the body text of a card.  You can even use line\n  breaks and emoji!`,
             buttonText: 'This is a button',
             buttonUrl: 'https://assistant.google.com/'
           })
         );

    //suggestion
    let suggestion = new Suggestion('you want assistances?');
    suggestion.setReply('I need assistance');
    agent.add(suggestion);
    agent.add(new SuggestionsResponse(`No, Thanks!`));
  }
  
  function fallback(agent) {
      const siqpayload = {"platform": "ZOHOSALESIQ","action": "forward","replies": ["Thanks for contacting us today, You will be connected to our operator shortly"]};
      //new PayloadResponse(PLATFORMS.PLATFORMS.UNSPECIFIED, siqpayload);
      agent.add(new PayloadResponse('PLATFORM_UNSPECIFIED', siqpayload));
  }
  
  let intentMap = new Map();
  intentMap.set('Default Welcome Intent', welcome);
  intentMap.set('Default Fallback Intent', fallback);
  agent.handleRequest(intentMap);
});

Note:

  • SalesIQ does not support images because the text is mandatory on our end.
  • The custom payload is an integration specific response. Since Zoho SalesIQ integration is not directly supported, we need to use platform_unspecified for the integration.
function fallback(agent) {
      const siqpayload = {"platform": "ZOHOSALESIQ","action": "forward","replies": ["Thanks for contacting us today, You will be connected to our operator shortly"]};
      //new PayloadResponse(PLATFORMS.PLATFORMS.UNSPECIFIED, siqpayload);
      agent.add(new PayloadResponse('PLATFORM_UNSPECIFIED', siqpayload));
  }
  • In Inline, in case both Payload Response and text/images/cards are used, only the response from PayloadResponse will be sent.

Using Dynamic Text in Response

The text that can change is termed as "Dynamic Text". Messages will be conveyed dynamically from one visitor to the other as mentioned in the defined rule. The dynamic text will be auto-populated when the "%" symbol is typed along with the message. Zoho SalesIQ supports Dynamic text in  Dialogflow responses and so you can use the dynamic text in trigger messages and chat responses.

How to use dynamic text? 

Using dynamic text in trigger messages:

  • In Zobot dashboard > Trigger Message text box, type % followed by the format along with the message.
  • Messages will be triggered dynamically to each visitor.

Using dynamic text in Dialogflow Responses:

  • In the Dialogflow responses > Text Response section, type % followed by the format along with the message.
  • Responses will be sent dynamically to each visitor.

List of dynamic text you can use in your triggers messages and Dialogflow responses:

Dynamic Text FormatWhat it representsUse in Trigger MessageUse in Dialogflow Responses
%visitor.name%Name of the visitor on the website.
%visitor.id%Reference ID for the visitor on the website. 
%visitor.email%Email Address of the visitor on the website.
%visitor.phone%The contact number of the visitor.
%visitor.department%Name of the department to which the visitor has initiated the chat.
%visitor.question%The question raised by the visitor while initiating the chat. 
%visitor.ip%The IP address of the visitor visiting the website.
%attender.name%Name of the operator attending the chat.
%visitor.pagetitle%Title of the page, from where the visitor has initiated the chat.
%visitor.pageurl%URL of the page, from where the visitor has initiated the chat.
%visitor.referrer%Source from where the visitor is referred from.
%visitor.state%State/Province of the visitor.
%visitor.city%City of the visitor.
%visitor.country%Country of the visitor accessing the website.
%visitor.timezone%Time zone of the visitor accessing the website.
%visitor.latitude%Latitude of the visitor. 
%visitor.longitude%Longitude of the visitor. 
%visitor.operating.system%The operating system used by the visitor.
%visitor.browser%The browser used by the visitor.
%visitor.browser.version%The version of the browser used by the visitor. 
%web.embed.name%The web embed where the visitor has initiated the chat.
%platform%The platform used by the visitors in their system. 
%screen.resolution%Screen resolution of the visitor's system. 
%search.engine%Search engine used by the visitor to reach the website. 
%search.query%Search Query (Keyword)used by the visitor to reach the website. 
%attender.email%The email address of the attender who attends the chat.
%smart.timenow%Time period in the sequence of the day (Eg. Morning, Evening).
%company.name%Company name mentioned in Clearbit.
%company.type%Company type mentioned in Clearbit.
%company.sector%Company sector mentioned in Clearbit.
%company.location%Company location mentioned in Clearbit.
%company.website%Company website mentioned in Clearbit.
%company.employeecount%Company's employee count mentioned in Clearbit.
%company.annualrevenue%Company's annual revenue mentioned in Clearbit.
%company.marketcapital%Company's market capital mentioned in Clearbit.
%company.fundraised%Company fund details present in Clearbit.
%company.twitterfollowers%Your company's Twitter followers from Clearbit.
%company.facebooklikes%The likes you got in Facebook registered in Clearbit.
%company.industrytype%The industry type your company belongs to.

Note: Some of the dynamic text might not work in the Zobot preview window. 

File Upload

While uploading a file to the Dialogflow bot, a text message that says File Uploaded Successfully will be sent to Dialogflow. No text will be displayed in the chat window and the text will not be sent based on the language. The user needs to handle the file upload intent based on the text response.

Passing visitor info and attachments

Visitor info will be passed on to Dialogflow for framing a response based on the visitor information like name, visitor region, etc. While processing the intent response inside Fulfillment, the values will be available inside the parameters object. Here, two objects will be received: 

  1. visitor - you can retrieve the visitor info mentioned here 
  2. attachments - if the visitor attaches a file during a bot conversation, it will be available inside this object. Otherwise, an empty array will be passed.
{
      "attachments": [
        {
          "name": "Screenshot.png",
          "url": "https://salesiq.zoho.com/api/v2/vicky123/attachments/330340647f6b1386d7373d2b2933b0fde58837d874086b95b2909d87f663272f5aba596670294baa?file_name=Screenshot.png&chat_id=LD_2242276011928302370_1664693403&purpose=chat_attachment",
          "contenttype": "image/png"
        }
      ],
      "visitor": {
        "current_page_url": "http://htmledit.squarefree.com/",
        "uvid": "fbe9a8d9-d1be-4799-b2ff-f64573f4eb92",
        "landing_page_url": "http://htmledit.squarefree.com/",
        "last_call_attender": "318242000000556023",
        "in_time": "1561026289397",
        "uts_session_id": "-8438009772243006363",
        "browser": "Google Chrome",
        "country": "",
        "ip": "125.19.26.35",
        "country_code": "IN",
        "language": "en",
        "question": "hi",
        "phone": "",
        "number_of_past_chats": "1",
        "lead_score": "1",
        "number_of_past_visits": "1",
        "visitid": 252,
        "visitor_id": 318242000001314000,
        "os": "Apple Macintosh",
        "email": "",
        "name": "Visitor 974826",
        "uuid": "e6c49e0c-fbf0-4b1d-86b2-b7db6cf6f13b_a0",
        "department_id": 318242000000002000
      }
    }