How do I deploy the bot from an http request?
# 🤝help
a
How do I deploy the bot from an http request? I already have it created through http and with its it
f
You need to use the Update Bot API and pass the bot's JavaScript code in the
code
parameter of the request body: https://docs.botpress.cloud/docs/api-documentation/#update-bot
a
OK, I can get that code by request in the api, I don't see it in the "get" of the bot
f
No, at the moment in order to create bots via the API you'd need to code the bot, including a dialog manager (which is a state machine, basically) from scratch and then bundle it into a single JavaScipt file whose contents would be sent in the
code
parameter of the Update Bot endpoint.
Please note that although the API endpoints are publicly documented this is an alpha feature as the tooling to make it easier to create bots this way isn't available yet, so right now it's a bit complicated to do this.
It's in our roadmap to work on the tooling and documentation necessary to make it easier to create bots manually (outside of the Studio) using our API, but we're not there yet 🙂
a
thanks!
3 Views