# How does the event "sendMsg" work on Allowing Context-Sensitive Actions?

**URL:** <https://devforum.zoom.us/t/how-does-the-event-sendmsg-work-on-allowing-context-sensitive-actions/3767>\
**Category:** API and Webhooks\
**Created:** [March 28, 2019, 9:41am UTC](https://devforum.zoom.us/t/how-does-the-event-sendmsg-work-on-allowing-context-sensitive-actions/3767 "2019-03-28T09:41:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![austinswa](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/austinswa/32/539_2.png) [@austinswa](https://devforum.zoom.us/u/austinswa)\
**Post date:** [March 28, 2019, 9:41am UTC](https://devforum.zoom.us/t/how-does-the-event-sendmsg-work-on-allowing-context-sensitive-actions/3767/1 "2019-03-28T09:41:58Z")

</div>

i’d like to know the event “sendMsg”, how does it work?  
When i click the button, what will happen? where does it send request to?

> **[Allowing Context-Sensitive Actions - Generating Rich-Text Bot Message Cards -...](https://marketplace.zoom.us/docs/guides/guides/building-a-chatbot/Generating-Rich-TextBot-Message-Cards/Allowing-Context-Sensitive-Actions)**
>
> Allowing Context-Sensitive Actions
> 
> Each action button can be associated with a desired action.
> 
> {
> "head": {
> "text": "Ticket ZOOM-1000 Created...

---

<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:42pm UTC](https://devforum.zoom.us/t/how-does-the-event-sendmsg-work-on-allowing-context-sensitive-actions/3767/2 "2019-04-01T22:42:33Z")

</div>

Hi Austin,

The events shown in the example are just for demonstration purposes. If you want them to invoke certain action, you would need to create your own logic for the same.

Alternatively, you can consider referring to this example on our [GitHub](https://github.com/zoom/zoom-bot-demo) or see our newly updated docs on [How to Build a sample Chatbot](https://marketplace.zoom.us/docs/guides/guides/building-a-chatbot/zoombotsdk-chatbot)

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:14pm UTC](https://devforum.zoom.us/t/how-does-the-event-sendmsg-work-on-allowing-context-sensitive-actions/3767/3 "2020-08-21T18:14:37Z")

</div>

Closed on August 21, 2020, 6:14pm UTC


