Follow this steps to integrate a Zoho Cliq bot to your MightyChat Agent
On your MightyChat Dashboard, go to your Agent settings and click on “Integrations”. Then, on Zoho Cliq, click “Connect”
If this redirects you to your Zoho Cliq portal, this means the activation was successfully, and you can continue to step 2.
Now, on your Cliq portal, go to settings, and click on “Bots & Tools”
Now click on “Create Bot”
Set name, description, and access level to your bot. We recommend to do no add your bot to channels, because it is prepared for 1 to 1 chat only.
Optionally set an image and status messages for your bot, and click on “Save Bot”
Now, on Message Handler, click on “Edit Handler”
Now, delete the existing code and add the following, replacing "agent_id" with your MightyChat Agent ID. You can get it on your Agent Settings. Then, click on “Save”:
payload = Map();
payload.put("message",message);
payload.put("user",user);
// your chatbot info
payload.put("mightychat_chatbot_id","agent_id");
headers = Map();
headers.put("Content-Type","application/json");
mightychat_response = invokeurl
[
url :"https://mightychat-cliq.azurewebsites.net/webhook"
type :POST
parameters:toString(payload)
headers:headers
];
mightychat_message = mightychat_response.getJSON("mightychat_message");
response = Map();
response.put("text",mightychat_message);
return response;
Now you can send text messages to your Cliq bot on the right side of the page. When you write your first message, you’ll see a prompt like this. Clikc on “Proceed to allow”
And you are done! Now you can chat with your agent both in the test area and the main cliq portal!
If you have any question or issue, feel free to contact us on the support section.