Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
openRouter Tools Function - Typebot
T
Typebot
•
5w ago
•
1 reply
Kalleb
openRouter Tools Function
💬
Question
🐛
Potential bug
Hi everyone
, I
'm doing some tests on the OpenRouter integration using some free templates to make API requests
. However
, I can
't get the function to work
. Is it a bug in Typebot or am I doing something wrong
?
I
'll show you my script for better clarification
.
try
{
const response
= await fetch
(
'
https://exemplo.com/webapi/beneficiario/11895497272
'
,
{
method
:
'GET
'
,
headers
:
{
'Authorization
'
:
'Basic xxx
'
,
'Accept
'
:
'application
/json
'
}
}
)
;
if
(
!response
.ok
)
{
throw new Error
(
Erro HTTP ${response.status}
Erro HTTP ${response.status}
)
;
}
const result
= await response
.json
(
)
;
if
(
!result
.dados
|
|
!result
.dados
.nome
_completo
)
{
throw new Error
(
'Estrutura de resposta inv
álida
'
)
;
}
return result
.dados
.nome
_completo
;
} catch
(error
)
{
return
Erro na requisição: ${error.message}
Erro na requisição: ${error.message}
;
}
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
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
OPENAI Functions and Tools
T
Typebot / help-and-questions
3y ago
Bug with openrouter API
T
Typebot / help-and-questions
2y ago
Is the "Generate Variables" the same as "Tools > Function"?
T
Typebot / help-and-questions
2y ago
Error notification outdated openrouter model?
T
Typebot / help-and-questions
7mo ago