# How to implement conversation AI agent in Asterisk

**URL:** <https://community.asterisk.org/t/how-to-implement-conversation-ai-agent-in-asterisk/106397>\
**Category:** Asterisk APIs\
**Created:** [January 16, 2025, 4:32pm UTC](https://community.asterisk.org/t/how-to-implement-conversation-ai-agent-in-asterisk/106397 "2025-01-16T16:32:07Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![techdev](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@techdev](https://community.asterisk.org/u/techdev)\
**Post date:** [January 16, 2025, 4:54pm UTC](https://community.asterisk.org/t/how-to-implement-conversation-ai-agent-in-asterisk/106397/6 "2025-01-16T16:54:44Z")

</div>

Thanks for all of your many quick replies.

Yes, I’ve already seen several topics. Here is what I have known about it from this topic - [How to get real time audio streams of both Calling party and called party independently - #5 by shamnusln](https://community.asterisk.org/t/how-to-get-real-time-audio-streams-of-both-calling-party-and-called-party-independently/99676/5).

1. Get the bridgeId of the current active call
2. Take each channels in that bridge
3. For each channel, create a snoopChannel.
4. Then, create an externalMedia channel, corresponds to each snoopChannel.
5. Finally create a new bridge and add these externalMedia channels to this bridge.

Regarding the step 1, should I get the bridge id from bridge list using setInterval and then go to the next step from there?

---

_[View the full topic](https://community.asterisk.org/t/how-to-implement-conversation-ai-agent-in-asterisk/106397)._
