Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
OPENAI Functions and Tools - Typebot
T
Typebot
•
3y ago
•
3 replies
Toni Matas
OPENAI Functions and Tools
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
'
}
Typebot
Join
A place to connect with chatbot enthusiasts. Learn about bot building best practices and discover new content.
5,834
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Functions with Assistant OpenAi
T
Typebot / help-and-questions
2y ago
async functions in OpenAI Ask Assistant
T
Typebot / help-and-questions
8mo ago
OpenAI Block
T
Typebot / help-and-questions
11mo ago