How to integrate an external bot with Haptik's Smart Agent Chat?

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 bot builder tool.

Stages to integrate

Using Webhooks

This is a straightforward method where the client can integrate with Haptik's tool using simple webhooks.

For the purposes of the integration, haptik will provide the client with the following data:

  • client_id
  • token
  • webhook URL

The client can then use this data for the integration. Here's how the integration will work:

  • When the client wants to transfer the chat to an agent they perform the following actions:
  • The client also needs to provide a webhook of their own where the responses from the agent will be sent. Haptik will send the agent responses to this webhook endpoint with the following payload - Link to Documentation.
  • You can process the messages received on the webhook and forwards them to the user who sent the message.

Can’t find what you’re looking for? Email us at support@haptik.ai.