https://retellai.com/?utm_source=discord&utm_medium=seo logo
for a voice agent, is there a way to perform funct...
# ❓・ai-evy-support
j
@AI Evy for a voice agent, is there a way to perform functions concurrently while the other nodes are being executed? for example: a user calls in and we use a function to look them up by mobile # while the agent says hello and begins gathering info.
a
Thanks for tagging me @jack_31981. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, Retell AI's Function Node provides some control over concurrent execution through specific settings [(1) ]() . In Conversation Flow, you can configure when transitions happen using the Function Node's "Wait for Result" and "Speak During Execution" settings . When "Speak During Execution" is enabled, the agent can generate utterances like "Let me check that for you" while the function is being executed . This allows the agent to speak while the function runs in the background. The timing works as follows : - If
wait for result
is turned off and
speak during execution
is turned on, the agent will transition once done talking - If
wait for result
is turned on and
speak during execution
is turned on, the agent will transition once function result is ready and agent is done talking However, the documentation doesn't explicitly describe executing multiple functions simultaneously while other nodes are running. The Function Node is designed to call one function when entering that specific node . For your use case of looking up a user by mobile number while the agent says hello and gathers info, you might need to structure your conversation flow to use the "Speak During Execution" feature to have the agent talk while the lookup function executes . I don't have comprehensive information about running multiple functions concurrently across different nodes simultaneously. For more detailed guidance on advanced concurrent execution patterns, you may want to check the [Custom Function documentation]() or contact support directly.
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.