Setting an introduction message
Last updated
Last updated
The Poe API allows you to set a friendly introduction message for your bot, providing you with a way to instruct the users on how they should use the bot. In order to do so, you have to override get_settings
and set the parameter called introduction_message
to whatever you want that message to be.
The final code (including the setup code you need to host this on ) that goes into our main.py
is as follows:
To learn how to setup Modal, please follow Steps 1 and 2 in our . If you already have Modal set up, simply run modal deploy main.py
. Modal will then deploy your bot server to the cloud and output the server url. Use that url when creating a server bot on . Once your bot is up, update your bot's settings (one time only after you override get_settings
) by following guide. That's it, your bot is now ready.