poe_bot.mdx 971 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. title: '🔮 Poe Bot'
  3. ---
  4. ### 🚀 Getting started
  5. 1. Install embedchain python package:
  6. ```bash
  7. pip install embedchain[poe]
  8. ```
  9. 2. Create a free account on [Poe](https://www.poe.com).
  10. 3. Click "create bot".
  11. 4. Give it a handle and an optional description.
  12. 5. Select `Use API`.
  13. 6. Under `API URL` enter your server or ngrok address. You can use your machine's public IP or DNS. Otherwise, employ a proxy server like [ngrok](https://ngrok.com/) to make your local bot accessible.
  14. 7. Copy your api key and paste it in `.env` as `POE_API_KEY`.
  15. 8. Start the bot.
  16. ```bash
  17. python -m embedchain.bots.poe --port 5000
  18. ```
  19. 9. Click `Run check` to make sure your machine can be reached.
  20. 10. Make sure your bot is private if that's what you want.
  21. 11. Click `Create bot`.
  22. 12. Happy chatting!
  23. ### 💬 How to use
  24. - To include data sources, use this command:
  25. ```text
  26. /add <url_or_text>
  27. ```
  28. - To ask the bot questions, just type your query:
  29. ```text
  30. <your-question-here>
  31. ```