DEV Community

Cover image for Create a ChatGPT WhatsApp Bot on Cyclic in Just 5 minutes

Create a ChatGPT WhatsApp Bot on Cyclic in Just 5 minutes

bal simpson on January 10, 2023

ChatGPT is the current rage and I thought it would be fun to make a WhatsApp bot that I can interact with instead of going to the website. It uses ...
Collapse
 
edgarinopan profile image
edgarinopan •

Hello!
I cant get passed Step 4 - Connect to Facebook
i get this messagen when trying to enter the webhook
"Callback verification failed with the following errors: HTTP Status Code = 404; HTTP Message = Not Found"

I have followed all steps several times. I think it has to do something with the token since i read the following message in logs on cyclic
"GET/?hub.mode=subscribe&hub.challenge=745050658&hub.verify_token=lplp" (lplp was the random token i wrote)

Collapse
 
edgarinopan profile image
edgarinopan •

also when i try to open the URL that cyclic gives me, it shows "Cannot GET /" is this the problem?

Collapse
 
edgarinopan profile image
edgarinopan •

i solved the previous problems by adding "/webhook" to the URL and now it doesnt display the "Cannot GET /" while trying to access it, but now i get no reponse from the bot when replying to it for whatsapp. I can see from logs that it reciebes the message but it only gives back an "OK"

Thread Thread
 
balsimpson profile image
bal simpson •

You get the ok as a reply from the bot on Whatsapp or in the message log?

Thread Thread
 
edgarinopan profile image
edgarinopan •

in the message log

Thread Thread
 
balsimpson profile image
bal simpson • • Edited

In the transactions tab on cyclic, check the logs. Are you not getting any reply on your Whatsapp?
Image description

Collapse
 
tiredzone profile image
Bechara Maalouf •

Thanks for your help! I have just one inquiry. Is there any option for creating a permanent bot, whether it's a paid or free solution?

Collapse
 
balsimpson profile image
bal simpson •

Not sure what you mean. This is technically a permanent bot. As long as you don't run out of OpenAI credits.

Collapse
 
andresfelch profile image
andresfelch •

you published a step by step guide to radio streaming for alexa skill. I lost hours following what you said and nothing...

Collapse
 
shmuelap profile image
shmuelap •

doesn't work for me, got this in log:
2023-01-18 00:00:56.672: Failed to get completion - Request failed with status code 429
2023-01-18 00:17:05.771: Server listening on port 3000

Collapse
 
balsimpson profile image
bal simpson •

Status Code 429 stands for too many requests. Did you get any response at all ever or is it this error for every request?

Collapse
 
shmuelap profile image
shmuelap •

for every request

Thread Thread
 
balsimpson profile image
bal simpson •

I'd be happy to do a pair programming session to figure out why it isn't working. I had a friend try and and they installed without any problem.

Collapse
 
shmuelap profile image
shmuelap •

and i didnt flood the bot or anything. for a single "do you work?"