Skip to main content
Solved

API for the realtime voice bot

  • March 14, 2024
  • 5 replies
  • 258 views

Hello!
We want to develop a
bot that will auto-answer (pick up) the call when it is ringing and will reply smartly when it hears something from the caller.

But we can't find the API on how to listen to the call after it's answered and how to reply by some audio to the caller.

Could you please help us to find the solution to how exactly to implement this?

In
WebPhone SDK https://github.com/ringcentral/ringcentral-web-phone it looks like it is possible only to answer the incoming call, but there are no options on how to listen to the answered call or how to reply something back to the user.

Also, we found a similar post on the forum where the person was looking for the same API that we need, but it looks like it was not resolved.
https://community.ringcentral.com/questions/1535/realtime-voice-bot-with-ringcentral.html

Thanks in advance!

Best answer by Tyler850957020

The problem for https://github.com/ringcentral/ringcentral-web-phone is it can only run in a browser. In theory you will be able to get audio data, at least you computer's speaker can get the audio data.

This SDK is better in my opinion: https://github.com/ringcentral/ringcentral-softphone-ts

It can run on server side as a node.js app.

Sample code here https://github.com/ringcentral/ringcentral-softphone-ts/blob/main/demos/inbound-call.ts#L22-L32

tells you how to auto answers the call, how to get audio from remote peer and how to send/play local audio to remote peer.


View original
Did this thread help you find an answer to your question?

The problem for https://github.com/ringcentral/ringcentral-web-phone is it can only run in a browser. In theory you will be able to get audio data, at least you computer's speaker can get the audio data.

This SDK is better in my opinion: https://github.com/ringcentral/ringcentral-softphone-ts

It can run on server side as a node.js app.

Sample code here https://github.com/ringcentral/ringcentral-softphone-ts/blob/main/demos/inbound-call.ts#L22-L32

tells you how to auto answers the call, how to get audio from remote peer and how to send/play local audio to remote peer.



  • Participating Frequently
  • March 18, 2024

Thanks! It seems like this is what we were looking for. I will check it out.

One thing that in this package I can't find call transfer.
Is it possible to transfer the call to another user in this library?


  • New Participant
  • November 13, 2024

Is RingCentral going to release a realtime voice agent bot. The old phone tree voice menu is so 2019.


  • New Participant
  • November 13, 2024

I mean an AI Voice Agent Bot. ChatGPT added this capability recently


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • November 13, 2024
carguy52 wrote:

I mean an AI Voice Agent Bot. ChatGPT added this capability recently

You can build one by yourself if you are interested. Please check out this article for details.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings