# Chatbot api, post message visible to everyone in channel

**URL:** <https://devforum.zoom.us/t/chatbot-api-post-message-visible-to-everyone-in-channel/99445>\
**Category:** API and Webhooks\
**Created:** [December 3, 2023, 9:59pm UTC](https://devforum.zoom.us/t/chatbot-api-post-message-visible-to-everyone-in-channel/99445 "2023-12-03T21:59:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dougcw](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dougcw](https://devforum.zoom.us/u/dougcw)\
**Post date:** [December 3, 2023, 9:59pm UTC](https://devforum.zoom.us/t/chatbot-api-post-message-visible-to-everyone-in-channel/99445/1 "2023-12-03T21:59:10Z")

</div>

Hi all,

I have created a development chatbot that I have listed under apps, the bot responds to me and I can see the messages. I want to have the bot respond to queries in a channel I am in. I changed the to\_jid parameter to the channel id and I can see the post now in the channel, but it says " Only visible to you".

How do I make the message from the bot visible to everyone in the channel?

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 4, 2023, 5:48pm UTC](https://devforum.zoom.us/t/chatbot-api-post-message-visible-to-everyone-in-channel/99445/2 "2023-12-04T17:48:18Z")

</div>

Hi @dougcw  
Thanks for reaching out to us and welcome to our community!  
Can you confirm if you are using the following endpoint?

> **[Zoom Team Chat API](https://developers.zoom.us/docs/api/rest/reference/chat/methods/#operation/sendaChatMessage)**
>
> API Reference for /docs/api/rest/reference/chat/methods

Please note that there is a to\_channel field that you can pass in the request body

---

<div class="post-metadata">

**Author:** ![dougcw](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dougcw](https://devforum.zoom.us/u/dougcw)\
**Post date:** [December 5, 2023, 6:10pm UTC](https://devforum.zoom.us/t/chatbot-api-post-message-visible-to-everyone-in-channel/99445/3 "2023-12-05T18:10:02Z")

</div>

Thanks Elisa,

I appreciate your time, the endpoint was [https://api.zoom.us/v2/im/chat/messages](https://api.zoom.us/v2/im/chat/messages), so it allowed me to use the JID of the channel to post in it and see it, but I suspect the “im” means it just IMs into that channel. If I want to make this bot work in channel for all users I will need to use the teamchat endpoints. I have looked for a “chatbot” example that does this, but I don’t see anything on the zoom repo. Can you point me in the right direction! Again I really appreciate it.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 6, 2023, 4:30pm UTC](https://devforum.zoom.us/t/chatbot-api-post-message-visible-to-everyone-in-channel/99445/4 "2023-12-06T16:30:00Z")

</div>

Hi @dougcw  
Of course, happy to help!  
IM means Instant messages and you can send them to a contact or directly to a channel, depending on what you are trying to achieve.  
Here are a couple of sample apps that you might find helpful:

> **[GitHub - zoom/team-chat-shortcut-sample: This repository contains a Node.js...](https://github.com/zoom/team-chat-shortcut-sample)**
>
> This repository contains a Node.js application that allows you to create a Zoom Team Chat App for managing recordings. Follow the instructions below to set up and run the application. - GitHub - zo...

> **[GitHub - zoom/team-chat-app-anthropic-ai](https://github.com/zoom/team-chat-app-anthropic-ai)**
>
> Contribute to zoom/team-chat-app-anthropic-ai development by creating an account on GitHub.

Please let me know if you have any other questions!  
Cheers,  
Elisa

---

<div class="post-metadata">

**Author:** ![dougcw](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dougcw](https://devforum.zoom.us/u/dougcw)\
**Post date:** [December 7, 2023, 2:24am UTC](https://devforum.zoom.us/t/chatbot-api-post-message-visible-to-everyone-in-channel/99445/5 "2023-12-07T02:24:05Z")

</div>

Elisa,

Just to put a pin in this, I figured it out! Looks like I needed to create the app for the chatbot with account level access and not user level access. Once I did that I was able to send messages in whatever channel I placed the “/” trigger in.

The endpoint was [https://api.zoom.us/v2/im/chat/messages](https://api.zoom.us/v2/im/chat/messages)

Thanks again for your help!

Doug

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 7, 2023, 7:23pm UTC](https://devforum.zoom.us/t/chatbot-api-post-message-visible-to-everyone-in-channel/99445/6 "2023-12-07T19:23:26Z")

</div>

Nice @dougcw  
Happy to hear that you figured it out! and yeah definitely, an account-level app will send messages to everyone in the channel!  
Thanks for sharing your findings with the community!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 8, 2023, 7:23pm UTC](https://devforum.zoom.us/t/chatbot-api-post-message-visible-to-everyone-in-channel/99445/7 "2023-12-08T19:23:53Z")

</div>

Closed on December 8, 2023, 7:23pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
