Hi while send message to the bot using api https:/...
# 🤝help
w
Hi while send message to the bot using api https://api.botpress.cloud/v1/chat/messages facing 403 error Bot "8abdd6df-6ed7-45bd-b5da-f657ae6b39a5" is not authorized to create messages as an integration . Any suggestions please ?
m
@crooked-van-25152 @witty-football-93730 can you folks help out on this please.
w
@famous-jewelry-85388 could you please help me on this ?
w
Hey @wide-animal-67795 can you share how you're using the api ? Are you using straight up an http request throught a http client or through code . Can you also share a little more context, are you developing an integration ? Let me know and I can help you
w
i am invoking api via @cold-motherboard-82208/client
but while checking network tab it shows the rest-api calls invoked to botpress
api.botpress.com
i am preparing the UI chat window
and getting the messages from botpress conversation using conversation id
but the problem is while sending message to the bot it throws this error
w
@colossal-egg-20510 can you jump in here 🙂
c
The api is designed to prevent sending an incoming message via API to a bot (This is a feature to prevent infinite loop inside a bot). Only integrations are allowed to send messages to bots. If you are interested, you can look into how to make an integration. Here's the documentation https://botpress.com/docs/integration/. If you want to talk with your bot directly using a realtime API this is not available yet but we are working on documenting and open sourcing the client we are using for the Webchat. I hope this helps! 🚀
w
ok thank you i will check and let you know if any issues when using this SDK
m
@colossal-egg-20510 any ETA on the documentation and open sourcing the client of the Webchat??
c
You should expect the Webchat's API to be available publicly by the end of august. I'll take a note to add you to the Beta if we do one for this API to give you early access.
w
@colossal-egg-20510 is there any workaround to be able to send message to bot ?
a
Not until the webchat beta is out, no
w
sorry to interrupt here 😛 But there would be a workaround using triggers. You could in theory (I haven't tried this yet) send a webchat event on the host page, and catch that in a workflow using a trigger could you ?
f
Can you add me to the Beta too?
Do I have to @colossal-egg-20510? 🤣
a
@colossal-egg-20510 He meant me. 🙂
@colossal-egg-20510 Hi there. Are there any updates on the availability of the Webchat API, either Beta or Public release? Cheers! 😀
a
Hey Jason, we're still working on it. Hoping to get it out in the next 2 - 3 weeks
a
Thanks so much, @acceptable-kangaroo-64719 !
a
Is there any update in the meantime regarding sending messages to a bot via API?
32 Views