Example how to send a message to the WebChat widget
投稿日時:2023年12月10日
I'm writing python script to receive webhook new-message notifications and reply with some text. I setup a webhook but I still cannot write a Python code to send the reply.
There are some many docs related to Chat API / Conversation API / GraphQL API / Sunshine API and I still dont understand which one I should use.
Also I lost in 5 different types of authentication.
What type of authentication should I use with a data from
https://{subdomain}.zendesk.com/admin/apps-integrations/apis/conversations-api
I know my
SUBOMAIN
APP_ID
KEY_ID
SECRET_KEY
For the "send-message" API I a bit lost in too many docs and still cannot figure out how to solve such a basic problem.
I still cannot find any clear instruction or manual what exactly should I do to send "hi" to web-chat-widget
I have a data from "new-message" webhook and I see conversation_id inside
Can you give me example of curl / python code I should execute to send a reply message with the following
- HTTP method
- domain
- API path
- headers
- requests data
Thank you very much
2
2件のコメント
Tipene Hughes
To answer your questions:
Here's a link to the API reference for Sunco which might be helpful in getting started.
https://docs.smooch.io/rest/#section/Introduction
I hope this helps! Feel free to reach out with any questions.
Tipene
0
Vladimir Smelov
I check this article
https://developer.zendesk.com/documentation/live-chat/getting-started/getting-started-with-the-chat-conversations-api/
> Important: As of Jan 01, 2022, the Chat Conversations API is in maintenance mode and will not be receiving new features. Bug and security fixes will continue when required. Messaging customers can purchase a Sunshine Conversations license and use that platform to add third-party or custom bots to their workflow as a replacement option.
I dont really understand:
1) can I still use ZenDesk Conversation API or I have to move to Sunshine?
2) if I am on the trial-period can I use Sunshine without purchasing the license
3) I have a client for whom I write my application. What question should I ask to him to determine if he is on Sunshine license?
0
サインインしてコメントを残してください。