Creating Telegram Chatbot with AI. Getting error in HTTP module in Make

:bullseye: What is your goal?

I am trying to create a Telegram Chatbot using conversational AI.

:thinking: What is the problem & what have you tried?

The HTTP module in Make is creating error and I am not sure how to solve it.

:clipboard: Error messages or input/output bundles

InvalidConfigurationError
The provided JSON body content is not valid JSON.
Bad control character in string literal in JSON at position 118

Origin
Make

Automatic error handler
If you want to handle this error automatically, choose one of the following options. This will create a new error-handler route in your scenario. You can then expand the route in any way you like.

Ignore all errors
Ignore errors of type invalid configuration error
More information about error handling

:link: Create public scenario page

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Can you show the input bundle?

Hi Juan,

I have added custom fields in Manychat to input Telegram user messages and then pass that through Chatgpt.

User Message: 1. subscriber. custom_fields. AI > User
Messages

The screenshot needs to show the JSON otherwise we can’t really start to figure out whats going on. it will look like something like this below:

{

“text”: “other text”

}

I think also in your screenshot there was a message with an arrow “bad control character”. Can you expand the arrow to see what it shows?

Essentially this error is telling you that whatever is being sent to the HTTP module is not correctly formatted.

Hi all, thanks for your responses. I was finally able to figure out how to make it work.