> This page is for version Generative (default).
> For other versions, use one of these documentation indexes:
> - Generative (default): https://developers.ada.cx/generative/llms.txt
> - Scripted: https://developers.ada.cx/scripted/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.ada.cx/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.ada.cx/_mcp/server.

# New callback events in Embed2

We've added three new events to the [`subscribeEvent`](/reference/embed2-reference#subscribeevent) action in Embed2. With these events, you can provide your clients with a better experience after a bot or AI Agent has handed the conversation off to a human agent:

| Event key                  | Trigger                       |
| :------------------------- | :---------------------------- |
| `ada:agent:joined`         | Agent joined the conversation |
| `ada:agent:left`           | Agent left the conversation   |
| `ada:conversation:message` | Customer received a message   |

If you're using the Embed2 script, these events are immediately available. If you're using the [NPM package](https://www.npmjs.com/package/@ada-support/embed2), update it to the latest version (1.7.17) to start using them.