5 Ways to Integrate Chat2Desk with Your Service

5 Ways to Integrate Chat2Desk  With Chat2Desk you can communicate with clients in all messengers and social networks in one window, create chatbots, assign tags, distribute chats, edit client cards, track URLs and UTM tags and much more. 

But you can also connect the service with any of georgia whatsapp data software. In this article, we talk about five ways to develop integration with Chat2Desk.

  1. API
  2. Scripts
  3. iFrame
  4. POST requests using macros
  5. HTTP requests from a chatbot
  6. Chat2Desk Tips

 

Before you start working, you must register on chat2desk.com . After that, write to us via the widget in the right corner of the screen to connect the full mode.

1. API 5 Ways to Integrate Chat2Desk 

With the API you can send and next year again! messages, use webhooks, get information about your clients, operators, etc. You need to call API functions from your own server (so you need to have your own server). 

The API description is available here .

To implement customer support via slovakia business directory in your product, you should use an external channel. It allows you to transfer messages from your customers to Chat2Desk without going through messengers.

  • To pass a customer message to Chat2Desk, use the message/inbox API command with a POST request type.
  • To get a response from Chat2Desk (operators, chatbots, sales funnels, auto-responses, etc.), you need to use a webhook for an outbox message and then forward these responses to your product users. 

 

Please contact our technical support to connect an external channel to your account.

2. Scripts 5 Ways to Integrate Chat2Desk 

Scripts are another way to automate Chat2Desk. They include most of the Python libraries and functions, as well as Chat2Desk functions. Basically, scripts are used to automate work with chats and real-time messages. For example:

  • inform the supervisor about expired chats;
  • send a WhatsApp business card to the client after a call or filling out an application;
  • send a message to the client after closing a dialogue in the system.

Many tasks can be solved using both scripts and API. Don’t forget that you can call API functions inside a script.

Scripts in Chat2Desk are based on the Python language. They are stored and run on Chat2Desk servers, so unlike the API, you don’t need your own server. To edit a script, make sure you’re already registered on chat2desk.com, then go to Settings > Scripts . You can configure scripts on this page .

Description of the scripts is available here .

Scripts are based on events and corresponding handlers, for example:

  • a new message has arrived;
  • message sent;
  • tag assigned;
  • dialogue closed;
  • customer information has been changed, etc.

How to call a script? 

Script handlers are called automatically when the corresponding event occurs. But you can also call them yourself:

  • Once the chatbot is running, go to Settings > Autoresponder Bot > Create Keyword Set and specify the desired script function.
  • When a customer uses a given menu item. Go to Settings > Self-service menu > Create menu item and specify the desired script function.
  • Using macros. Go to Settings > Macros. It is possible to add a script function as a macro action. Macros are launched from the Chats section using the star button.
  • Using a third-party service – by calling a special URL in Chat2Desk. You will get this URL under Settings > Scripts > In the script events, find Call webhook from external service ( manually_handler ) (your webhook address is {your URL}).

When this URL is called from an external system via a POST or GET request , the manually_handler script handler is run and the requested data becomes available inside the input_data variable .  

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top