https://retellai.com/?utm_source=discord&utm_medium=seo logo
is it possible to pull call data including functio...
# ❓・ai-evy-support
q
@AI Evy is it possible to pull call data including functions it called and data it received from retell?
a
Thanks for tagging me @Q4. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can pull call data including function/tool calls and their results using the Get Call API or List Calls API. [(1) ]() [(2) ]() The call response includes a
transcript_with_tool_calls
field which provides the transcript weaved with tool call invocation and results. [(1) ]() It precisely captures when (at what utterance, which word) the tool was invoked and what was the result. Here's an example using the JavaScript SDK:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponse = await client.call.retrieve('119c3f8e47135a29e65947eeb34cf12d') ;
console.log(callResponse) ;
The response will include
transcript_with_tool_calls
which contains the tool call details. There's also a
public_log_url
field that provides a public log containing details about all the requests and responses received in LLM WebSocket, which is helpful for debugging and tracing.
​ To learn more, see the sources I considered: [[1] Get Call](https://docs.retellai.com/api-references/get-call) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the feedback, glad I was helpful.