Chatbot is unable to respond back to the user

We are trying to create a chatbot type of application. Sometimes the application ends up in a state where we are unable to send a message back to the user. Can you provide guidance on how to troubleshoot this. Currently we are simply creating new chatbots. But we wouldn’t want this to happen to a production application.

here is a sample request/response.

POST /v2/im/chat/messages HTTP/1.1
Host: api.zoom.us
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJ2ZXIiOiI2IiwiY2xpZW50SWQiOiJlN1R2RHIyUVN2aVhVaDNEX1hBY0F3IiwiaXNzIjoidXJuOnpvb206Y29ubmVjdDpjbGllbnRpZDplN1R2RHIyUVN2aVhVaDNEX1hBY0F3IiwiYXV0aGVudGljYXRpb25JZCI6IjlhNmQ2MGQ0N2IzNzFiMTExZTdkNjE1Y2VjMDA1OTZiIiwiZW52IjpbbnVsbF0sInVzZXJJZCI6IkQ5LVhxUWhrVFYtbHVQZWRqM0FUS0EiLCJncm91cE51bWJlciI6MCwiYXVkIjoiaHR0cHM6Ly9vYXV0aC56b29tLnVzIiwibmJmIjoxNTY2MjMzODIzLCJleHAiOjE1NjYyMzc0MjMsInRva2VuVHlwZSI6ImNsaWVudF90b2tlbiIsImlhdCI6MTU2NjIzMzgyMywianRpIjoiOGVlM2RjNzctYTRmOS00NjQ1LTgzNWItMjI3MmJmNWQyNjQxIn0.CJYKb0651Az_zMpi_AjcWzWCL6g-iK6d5CV5KvcIamhin8JB_wLtMaXG4n-ijoxLMV0b-wctvx0zIHENwkyvkg
Content-Type: application/json

{“robot_jid”:“v1eif9waq_qaw0-u_ukk7paa@xmpp.zoom.us”,“to_jid”:“d9-xqqhktv-lupedj3atka@xmpp.zoom.us”,“account_id”:“35OVrJQuQOCWqKbk9Fq4Pg”,“content”:{“head”:{“text”:“hello”}}}
BOTTENDER |INFO | 2019-08-19 16:57:04.107247024 [ZOOM REPLY]: POST to https://api.zoom.us/v2/im/chat/messages took 127 msec: https://api.zoom.us/v2/im/chat/messages
BOTTENDER |ERROR| 2019-08-19 16:57:04.107306988 [ZOOM REPLY]: http request to https://api.zoom.us/v2/im/chat/messages didn’t return 201: (403) {
“code”:7004,
“message”:“The user does not have authorization, the application cannot send the message.”

@ps40, I think your issue is you are on the Basic plan.

You need to have at least the Pro Plan to use the Zoom API’s. Your email is currently on the Basic plan. If you would like to have a Free Trial to test the Zoom API’s contact isv@zoom.us.

Duplicate post with solution here

Thanks,
Tommy

1 Like

@tommy is having a PRO account still required for Chatbot API? I’m not seeing it in the documentation but getting the below error sometimes… which I’m not sure when…

{
	"code":7004,
	"message":"The user does not have authorization, the application cannot send the message."
}

Hey @alon,

Is your Chatbot App installed on your account?

Please share your request url, and body so I can debug.

Thanks,
Tommy

I have the same problem, do I need to get a pro license?

Hi @cat,

If you wish to develop a chatbot, you will need a Pro license, that’s correct.

Thanks,
Will

Hi,

Zoom chatbot tutorial indicates that only Free version is enough.

Anyway how can I get a trial version of pro license. I have made a request by sending email to isv@zoom.us , I have not got any feedback.

Any help would be greatly appreciated.

Thanks

Hey @cat,

I think the issue may be different. Can you please create a new topic here: #zoom-api and fill out the post template so we have enough information to debug?

Thanks,
Tommy

@Tommy, you are right, my issue was different – bot endpoint URL for [development] is not valid, not up to date with the current ngrok session. Sorry about that. Thanks

1 Like

No worries @cat!

Happy to hear you got it sorted out! :slight_smile:

Thanks,
Tommy