Accessing other bots on Poe
Last updated
Last updated
The Poe bot query API allows creators to invoke other bots on Poe (which includes bots created by Poe like GPT-3.5-Turbo and Claude-Instant and bots created by other creators) and this access is provided for free so that creators do not have to worry about LLM costs. For every user message, server bot creators get to make up to ten calls to another bot of their choice.
You have to declare your bot dependencies using the endpoint.
In your get_response
handler, use the stream_request
function to invoke any bot you want. The following is an example where we forward the user's query to GPT-3.5-Turbo
and return the result.
The final code (including the setup code you need to host this on ) that goes into your main.py
is as follows:
We also provide a helper function for you to test the bot query API in a lower friction manner.
Usage done with this API key will count against your user account's message limits on Poe, so be sure to only use it for testing and not for cases when other people are using your bot.
In your python shell, run the following after replacing the placeholder with your API key.
If you are using an ipython shell, you can instead use the following simpler code.
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 .
Now, before you use the bot, you will have to follow the steps in article in order to get Poe to fetch your bots settings (one time only after you override get_settings
). Once that is done, try to use your bot on Poe and you will see the response from GPT-3.5-Turbo. You can modify the code and do more interesting things (like apply some business logic on the response or conditionally call another API).
Navigate to and copy your user API key. Note that access to an API key is currently limited to Poe subscribers to minimize abuse.