Skip to content
Interacting with Ch...
 
Notifications
Clear all

Interacting with Chatbase

9 Posts
2 Users
0 Reactions
4 Views
Gauthier1
(@gauthier1)
Posts: 5
Active Member
Topic starter
 

Hi,

I'm attempting to send data from Manychat to Chatbase. I've tried all the HTTP modules, as well as the Chatbase API Call module within callin.io. I'm encountering errors like 403, 401, or 500.

It's not functioning as expected. Is there a tutorial available for sending a question to Chatbase and receiving the reply along with a conversation ID (not just the text response)?

I've attached screenshots and the blueprint for reference.

Best regards,
Gauthier
blueprint.json (32.7 KB)

 
Posted : 02/07/2024 12:02 pm
Mr.Make
(@mr-make)
Posts: 25
Eminent Member
 

Hi, please try using the following JSON payload. It might be helpful if you can ensure that authentication is handled correctly.
json
{
“messages”: [
{
“content”: “{{12.question}}”,
“role”: “user”
}
],
“chatbotId”: “{{12.chatbot_id}}”,
“stream”: false,
“temperature”: 0,
“model”: “gpt-3.5-turbo”
}

An issue I've encountered previously is when messages don't escape special characters correctly, which can corrupt the payload. You'll need to account for these potential errors.

Let me know if this assists you!

 
Posted : 02/07/2024 1:08 pm
Gauthier1
(@gauthier1)
Posts: 5
Active Member
Topic starter
 

Thank you for your assistance, but it seems it didn't function as expected. Perhaps I misinterpreted the payload?

 
Posted : 02/07/2024 1:14 pm
Gauthier1
(@gauthier1)
Posts: 5
Active Member
Topic starter
 

Yes, I am using gpt-4o with the chatbase Javascript widget on my website, and it functions perfectly.

 
Posted : 02/07/2024 1:27 pm
Mr.Make
(@mr-make)
Posts: 25
Eminent Member
 

Ok great, just wanted to confirm.

Have you tested the updated payload?

Please share the rewritten markdown content; it should be in markdown format.

 
Posted : 02/07/2024 1:28 pm
Gauthier1
(@gauthier1)
Posts: 5
Active Member
Topic starter
 

Could you clarify what you mean by the new payload (specifically, the Body parameters within the module)? I believe so. I've provided screenshots of my updated configuration above, following your recommendation.

 
Posted : 02/07/2024 1:43 pm
Mr.Make
(@mr-make)
Posts: 25
Eminent Member
 

I've added a new suggestion. It seems you're missing quotes around "Hi" and the chatbotId in the payload you sent. Could you please try the following? Let me know if you encounter any further errors.

json
{
"messages": [
{
"content": "Hi",
"role": "user"
}
],
"chatbotId": "Xp1ZeXTGM1ElYG2YlXb_u",
"stream": false,
"temperature": 0,
"model": "gpt-4"
}

This is the example body for callin.io documentation:

yellow highlight = required

 
Posted : 02/07/2024 1:48 pm
Gauthier1
(@gauthier1)
Posts: 5
Active Member
Topic starter
 

Thank you so much. Obviously, the issue was the wrong quotation marks. It was this kind of quotes ” instead of “”.
But I still haven’t figured out how to make callin.io carry on the conversation. I created a new post for this issue: How to pass properly the chatbase conversationId to chatbase and Manychat?

 
Posted : 02/07/2024 2:11 pm
Mr.Make
(@mr-make)
Posts: 25
Eminent Member
 

Great, can you mark my solution as solved. Thank you!

 
Posted : 02/07/2024 2:15 pm
Share: