# Bot Slash Commando Not working Properly

**URL:** <https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731>\
**Category:** API and Webhooks\
**Created:** [March 25, 2019, 7:51pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731 "2019-03-25T19:51:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorge.canavati](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jorge.canavati](https://devforum.zoom.us/u/jorge.canavati)\
**Post date:** [March 25, 2019, 7:51pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/1 "2019-03-25T19:51:51Z")

</div>

When trying to invoke the bot through its slash command i get no return on my Endpoint, just a http request with no json payload as stated on the documentation.

Slash command has been set, urls (Both different from eachother) have been set, proper scopes have been selected and publishable url has been refreshed.

I get the same type or request as if some one texted the bot without the command slash.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [March 25, 2019, 11:15pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/2 "2019-03-25T23:15:33Z")

</div>

Hi,

Can you please provide some screenshots showing the issue?

---

<div class="post-metadata">

**Author:** ![jorge.canavati](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jorge.canavati](https://devforum.zoom.us/u/jorge.canavati)\
**Post date:** [March 26, 2019, 12:33am UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/3 "2019-03-26T00:33:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/5221ffe72b14a719706a11b12e04ef36363f982b.png)

This shows the slash command, I invoke it through “/api” on the group. Also whenever i type anything on a 1 on 1 with the bot, i get the same answer:

---

<div class="post-metadata">

**Author:** ![jorge.canavati](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jorge.canavati](https://devforum.zoom.us/u/jorge.canavati)\
**Post date:** [March 26, 2019, 12:34am UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/4 "2019-03-26T00:34:25Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/3194eb18f80844bc3165bd8dd61d3b112a21129a.png)

This is the response a get, it has no payload, just a simple http request.

---

<div class="post-metadata">

**Author:** ![jorge.canavati](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jorge.canavati](https://devforum.zoom.us/u/jorge.canavati)\
**Post date:** [March 26, 2019, 12:37am UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/5 "2019-03-26T00:37:26Z")

</div>

This are my scopes:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/ad15e13eb656cbabc11c624e4f8379802a7ab6ee.png)

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 1, 2019, 3:13pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/6 "2019-04-01T15:13:05Z")

</div>

Hi,

Can you please share the output as well which you are receiving ?

---

<div class="post-metadata">

**Author:** ![jorge.canavati](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jorge.canavati](https://devforum.zoom.us/u/jorge.canavati)\
**Post date:** [April 1, 2019, 7:36pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/7 "2019-04-01T19:36:55Z")

</div>

> [@jorge.canavati](#):
>
> ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/3194eb18f80844bc3165bd8dd61d3b112a21129a.png)

As stated before,the only output i recieve is a http request with no payload, ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/3194eb18f80844bc3165bd8dd61d3b112a21129a.png)

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 1, 2019, 10:30pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/8 "2019-04-01T22:30:27Z")

</div>

Hi Jorge,

Apologies for the inconvenience caused.

Please let me know if you are following these steps:

1. You are using the correct credentials and the correct environments, i.e: “Dev” or “Prod”
2. Steps mentioned [here](https://marketplace.zoom.us/docs/guides/guides/building-a-chatbot/engaging-with-im-channels)

if you are following the steps correctly, and still facing the issue, can you send me the code that you are using to send the message?

Alternatively, we have just published a tutorial [here](https://marketplace.zoom.us/docs/guides/guides/building-a-chatbot/zoombotsdk-chatbot) and you can also find the code [here](https://github.com/zoom/zoom-bot-demo)

Let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![jorge.canavati](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jorge.canavati](https://devforum.zoom.us/u/jorge.canavati)\
**Post date:** [April 1, 2019, 10:52pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/9 "2019-04-01T22:52:00Z")

</div>

Answering your questions,

1. Im using the correct credentials as the bot do send messages. And recieve petitions when resquested, they just come in blank

2. I did followed that documentation.

3. Im using the next code, which @michael_p.zoom sent to us. [https://github.com/zoom/zoom-bot-api/blob/master/sendBotMessage.js](https://github.com/zoom/zoom-bot-api/blob/master/sendBotMessage.js)

Ill try your tutorial to see if i can replicate it and find my error.

---

<div class="post-metadata">

**Author:** ![jorge.canavati](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jorge.canavati](https://devforum.zoom.us/u/jorge.canavati)\
**Post date:** [April 2, 2019, 2:16am UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/10 "2019-04-02T02:16:55Z")

</div>

@ojus.zoom Im using your code as i want to get this “commands” methodology to work on my code, but i dont seem to make it work. I set up the credentials correctly on the config file and redirected my localhost to port 3003 using serve (Substitue for ngrok) but it dowent seem to work correctly. whenever i type on the client y get the petitions but still no payload or response from the bot. I tried with the slash command, without the slash command, 1 on 1 chat, still blank petitions. Also whenever i tried to make the get request with /message i get in the console log "payload format error.

Is there a way in which we can engage through a zoom meeting? I think this will get solved in minutes with you live help.

Thanks.

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [April 2, 2019, 6:49pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/11 "2019-04-02T18:49:04Z")

</div>

Hi Jorge,

Please make sure that you have configured the URL’s correctly.  
If you are using the above code, make sure your URL’s are in the following format:

**In App Marketplace, App credentials**

##### Redirect URL for OAuth : [https://YourURL/oauth](https://YourURL/oauth)

See this example:

 ![App%20creds](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/2e0109e5b19b8d8d3c25861d653d47a9296a7651.png)

**In App Marketplace, Chat subscription**

#### Bot Endpoint URL: [https://YourURL/message](https://YourURL/message)

See this example:

 ![Chat%20subscription](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/60a8eb1369e7597388f5c5c2ce180c8dce483c2d.png)

**In config,js**  
Redirect URI / URL = [https://YourURL/oauth](https://YourURL/oauth)

Let me know if that resolves your issue

---

<div class="post-metadata">

**Author:** ![jorge.canavati](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jorge.canavati](https://devforum.zoom.us/u/jorge.canavati)\
**Post date:** [April 2, 2019, 7:36pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/12 "2019-04-02T19:36:44Z")

</div>

i have changed the urls as stated, but it still wont work. Now i get a verification error despite i have the correct info on the config files. I have tried for both development and production config info.

Also i have tried using the setting.setUrl(‘[https://dev.zoom.us](https://dev.zoom.us)’);.

As i am from flex, i have also tried changing ‘[https://dev.zoom.us](https://dev.zoom.us)’ for both of the flex tenants, de production and test ones.

In all this 4 cases I have tried with both config clients, production and development.

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/ea75cc3962a006d5391caf2de6a3f06079c5f715.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/5c9a0a9c7fa91a0a083018b11f20ca2982a55fa6.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/0a93528dc3592f7bc3c27f0cafdef1330fb742fc.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/e6dd65d4e6a316894482511bef672c35ad48360b.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/642f6679e7e7ac8c97e143ad5a3ac44d6a94b2ad.png)

---

<div class="post-metadata">

**Author:** ![jorge.canavati](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jorge.canavati](https://devforum.zoom.us/u/jorge.canavati)\
**Post date:** [April 2, 2019, 7:57pm UTC](https://devforum.zoom.us/t/bot-slash-commando-not-working-properly/3731/13 "2019-04-02T19:57:56Z")

</div>

Sorry forgot to add the outputs,

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/88430e1ded0a6a2776447e1a4486ff44fd39d33a.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/1ac39061aa45fa55211d1ee65e10970adf6ca3b8.png)
