Share feedback, ideas and get community help

Updated last year

OPENAI Functions and Tools

At a glance

A community member is trying to use an OpenAI integration in Typebot, but is getting a stringified JSON response instead of the expected LLM message. The community member does not understand the purpose of the code snippet provided in the help documentation. Other community members have commented that the issue seems to only occur in production and they are working on debugging it. There is no explicitly marked answer in the post and comments.

Useful resources
I'm trying this example as it's explained in the help page: https://docs.typebot.io/editor/blocks/integrations/openai

But I'm getting the stringified JSON as an answer:

{"tool_calls":[ {"id": "call_AmJRCysQpf6IsXUXPqC8an2q", "type": "function", "function": {"name": "getWeather", "arguments": "{"city":"Paris"}"}}]}

Instead of an LLM message like: The weather in Paris is sunny and warm, indeed!

So, I do not understand the purpose of the Code:

if (city === 'Paris') {
return 'Sunny and warm'
} else {
return 'Rainy and cold'
}
Attachment
image.png
B
T
3 comments
Indeed, it seems it does not work anymore. I'm checking how I can fix this
It's only happening on production so I have a hard time debugging it... Tracking the issue here: https://github.com/baptisteArno/typebot.io/issues/1211
Thanks, Baptiste!
Add a reply
Sign up and join the conversation on Discord