https://retellai.com/?utm_source=discord&utm_medium=seo logo
Callback after each message Needed
# ❓・bug-report
g
In my application I need to run a callback function in my python backend to run after each message the agent sends. This callback is needed to deliver some metadata to the client starting from the textual body of the message. Thus, it should also be able to modify the payload delivered to the client. Is this possible with Retell?
n
You can use the metadata event to pass extra data along with each response. I think this is made for use case like yours where you want to send some metadata to a frontend client etc. https://docs.retellai.com/api-references/llm-websocket#metadata-event Does this help? Also I suggest you can explore in detail the various options and message types 🙂