I'm trying this example as it's explained in the help page:
https://docs.typebot.io/editor/blocks/integrations/openaiBut 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'
}