https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can't make POST request with custom function
# ❓・bug-report
o
Hi team, I'm running into an issue with custom funcitons. I want to make a simple request to our service with only the following information in the body. { "workflowId": "d3798b9c-a374-4627-b31a-6c6570721829", "triggerData": { "test_field": "{{test_field}}" } } However, this doesn't seem to be possible with retell? I also can't seem to find a way to test the function. We're coming over from Bland, and it had a much simpler interface for this. Honestly, struggling with getting this to work https://cdn.discordapp.com/attachments/1410188293861146705/1410188294108741642/CleanShot_2025-08-27_at_02.03.132x.png?ex=68b01bb1&is=68aeca31&hm=3953300a98b59653a9ad2d51796800f908d803d96c0b542ebf3e80c08cc76137&
Really, it's more lke a webhook call. I'd like the ability to make a webhook call during the agent's execution
s
You’ll need to switch the request method to POST
s
Yes, my brother, I know whose UI this is.
Please read this document, it will guide you. If the issue still doesn’t get resolved, then let me know.
o
Ok thank you. I've read through the documentation and found workarounds to get the function working. But it is still not ideal. The current design relies on the LLM to format the body for the post request. It would be much nicer to have a hard-coded body that just does string replacements. e.g. {firstName : {{first_name}},} Another problem is that the only way I can test this is by running the entire agent , having a node connect to the function call, and then waiting for the LLM to read out the response. And this is a call info section, that was also helpful.
All this to say, it would be much easier if I could just call the webhook directly instead of having the LLM format it for me.
s
Totally understand your points. Right now, custom functions do rely on the LLM to build the body, and testing has to happen through the agent flow. There isn’t a way yet to hard-code the body with direct string replacements or to fire the webhook independently for testing. I’ll pass along your feedback — fixed-body templates and a “test function” button would definitely make things smoother. In the meantime, the best workaround is defining a tight schema (to reduce LLM formatting drift) and using a test endpoint like webhook.site or ngrok to inspect payloads quickly. Appreciate you raising this — it’s really helpful input for improving the developer experience.
o
Thank you so much, that would be extremely helpful. And you captured it exactly. I'll keep a lookout for an update. And the webhook.site suggestion is a great one. I also found a testing workaround by making smaller, scoped agents that don't require me to go through the entire flow. It's a bit tedious, but it works for nwo