poe_bot.mdx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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?utm_source=embedchain).
  10. 3. Click "Create Bot" button on top left
  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
  18. ```
  19. If you want to run the bot on another port, you can pass `--port option` like
  20. ```bash
  21. python -m embedchain.bots.poe --port 5000
  22. ```
  23. 9. Click `Run check` to make sure your machine can be reached.
  24. 10. Make sure your bot is private if that's what you want.
  25. 11. Click `Create bot` at the bottom to finally create the bot
  26. 12. Now you bot is created.
  27. ### 💬 How to use
  28. - To include data sources, use this command:
  29. ```text
  30. /add <url_or_text>
  31. ```
  32. - You can refer the [Supported Data formats](https://docs.embedchain.ai/advanced/data_types) section to refer the supported data types in embedchain.
  33. - To ask the bot questions, just type your query:
  34. ```text
  35. <your-question-here>
  36. ```