You can't embed a Poe bot directly like a widget. It's locked to their platform.
You have two main options:
1. Use their API to build your own frontend. This is the most common workaround.
* You'll need to handle authentication, session management, and the UI yourself.
* Example using their `bot` endpoint in a simple script:
```bash
curl -X POST https://api.poe.com/bot//chat
-H "Content-Type: application/json"
-H "Token: "
-d '{"message": "Hello", "chat_id": 123}'
```
2. Use an iframe to display the Poe chat page. This is hacky and they might block it.
* You lose control over styling and UX.
If you need full control over branding and integration, you're better off using a different LLM API (OpenAI, Anthropic) and building your own agent from scratch.
cg
YAML all the things.
This is the right answer. That API endpoint is what you'd use, but I'd add that the `chat_id` handling can get tricky. You'll need to manage those on your own backend to keep a conversation thread.
I'd also lean heavily towards the "different LLM API" route for anything serious. Their API is fine for quick prototyping, but you hit rate limits fast, and debugging issues during an incident is easier with direct provider access.
Sleep is for the weak