Haptik Docs

Haptik Docs

  • Tools
  • Integrations

›Advanced

Getting Started

  • Introduction

Smart Skills

  • Introduction
  • Ecommerce
  • Telecom
  • Insurance

Conversation Design

  • Introduction
  • Setting up a Flowchart tool
  • Building Blocks of Design
  • Chat Initiation
  • Chat Middle
  • Chat End
  • Conversation Design on WhatsApp
  • Building IVAs on WhatsApp
  • WhatsApp HSMs
  • Design Review

Essentials of Bot Building

  • Making Your First Bot
  • Bot Hierarchy
  • Creating a Story
  • Creating Nodes
  • User Says Guidelines
  • Smart Variants
  • Bot Says
  • Chat Elements
  • Connections
  • Entities
  • Small Talk
  • FAQ Nodes
  • Upload Graph Nodes
  • Search your IVA

Configurations Settings

  • Business
  • Platforms Deployment
  • Copy & Paste on Conversation Studio
  • Share your IVA
  • Transfer your IVA
  • Bot Prompts

NLU

  • Introduction
  • Intent & Entity
  • Dialogue Manager
  • Managing Bot Context and State
  • Did you mean? (Disambiguation)
  • Smart Assist

Integrations

  • Introduction
  • Code Node Integration
  • Static Node Integration
  • Integration Parameters

Quality Assessment

  • Introduction
  • ORACLE Feedback
  • Functional Testing
  • Regression Testing

Advanced

  • Integrating Webviews
  • Integrating with External Bot

Webhooks

  • Additional APIs

Miscellaneous

  • Multilingual Virtual Assistants
  • Voice IVAs

Integrating with External Bot

Why?

There might be times when there is an existing bot with a flow already built on another platform or through custom code. It is possible to connect this external bot flow to the Haptik tools through the Conversation Studio tool.

Steps to integrate

1. Create a bot on Conversation Studio

The first step is to create a new bot on the Conversation Studio tool. This bot will act as a gateway between Haptik Platform and the external bot.

2. Create a node to transfer data

The second step is to create a node in the bot. The job of this node is to take any user input that comes in and pass it along to the external bot. The node is also responsible to accept the input that comes in from the external bot and send it back to the user.

addnode

3. Accepting all inputs

We get the node to capture all the input messages by using a catchall entity. You can do this by adding an entity called "feedback_regex". This entity uses regex to capture the complete user message in the entity called "feedback_regex".

You can add entity by going to bot_says section of the node. In the bot says section click on the + Add an Entity and then search for feedback_regex. Finally click on Add to Bot Says to add it to the node.

add feedback

4. Communicating with the external bot

Once the user message is captured it can be sent to the external bot using the integrations section of the node. The first step is to set the base url of the external bot in the bot settings section. If the external bot has different test and production endpoints you can set them accordingly. Or you can set it to be the same URL in both the cases.

image

Once that is done, we can add the specific path where we need to send the message to. It should be noted that the endpoint will recieve the message in a parameter called feedback_regex because that is what the entity is called. The external bot can then use this message and return a bot response in a HSL format. This HSL will then be sent back to the user who sent the message.

image

To read more about how the data is sent to the endpoint, click here.

5. Completing the setup

Finally, we want the above steps to be repeated for all user messages. To do this we make the node self connecting. This means that all incoming messages and responses will loop through this node which is what we want.

self connect

Last updated on 4/16/2021
← Integrating WebviewsAdditional APIs →
  • Why?
  • Steps to integrate
    • 1. Create a bot on Conversation Studio
    • 2. Create a node to transfer data
    • 3. Accepting all inputs
    • 4. Communicating with the external bot
    • 5. Completing the setup
Haptik Inc.
Tools
Conversation StudioSmart Agent ChatIntelligent Analytics
Integrations
iOS SDKAndroid SDKWeb SDKWhatsAppFacebookBot API
Others
HSLSLAExternal Agent Chat Tool
Copyright © 2021 Haptik Inc.