# Automate sending messages

**URL:** <https://devforum.zoom.us/t/automate-sending-messages/5877>\
**Category:** API and Webhooks\
**Created:** [September 12, 2019, 2:30pm UTC](https://devforum.zoom.us/t/automate-sending-messages/5877 "2019-09-12T14:30:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [September 12, 2019, 7:09pm UTC](https://devforum.zoom.us/t/automate-sending-messages/5877/4 "2019-09-12T19:09:22Z")

</div>

Hey @prasanth.pendham,

You can send messages to channels now with [POST /im/chat/messages](https://marketplace.zoom.us/docs/api-reference/zoom-api/im-chat/sendchatbot), by passing in a Channel JID as the `to_jid`. This can be accomplished using a [Chatbot](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-chatbot-app), or [OAuth](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-oauth-app) App Type.

To find a channels `to_jid` here is how you call the Get channels endpoint (note this is deprecated, but will be replaced by the new Chat API’s coming later this month)

> [@Questions related to /im/users/{userId}/chat/messages endpoint](https://devforum.zoom.us/t/questions-related-to-im-users-userid-chat-messages-endpoint/3467/4):
>
> Hey @hagop, Our GET Channels Endpoint was recently deprecated and removed from our docs, but we have a new Get Channels Endpoint coming soon. In the meantime, here is the deprecated endpoint, use with caution until the new ones are out. GET /im/users/{{ USER ID }}/channels HEADERS: "Authorization": "Bearer {{ ACCESS TOKEN }}" The group\_jid in the response will work as the channelID. Be sure to [subscribe to our release log](https://marketplace.zoom.us/docs/changelog) here so you will be notified when the new Chat API’s are released. T…

Here is a tutorial on how to create a Chatbot from scratch,

[https://marketplace.zoom.us/docs/guides/chatbots/build-a-chatbot](https://marketplace.zoom.us/docs/guides/chatbots/build-a-chatbot)

Here is a tutorial on how to quickly send/test Chatbot messages,

[https://marketplace.zoom.us/docs/guides/tools-resources/postman/using-postman-to-test-zoom-chatbots](https://marketplace.zoom.us/docs/guides/tools-resources/postman/using-postman-to-test-zoom-chatbots)

And here is a sample app using our Chatbot NPM package.

> **[GitHub - zoom/vote-chatbot: Vote on topics in Zoom Chat](https://github.com/zoom/vote-chatbot)**
>
> Vote on topics in Zoom Chat

Let me know if that helps!

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/automate-sending-messages/5877)._
