Getting Started
Creating an Email Agent
Enable an agent to automatically manage and respond to emails as part of a workflow
Let’s create a simple welcome bot that sends a welcome email to new users and answers questions about the product.
Prerequisites
- Create an inbox using the quickstart guide and set the
webhook_url
to the channel you created in the previous step - Install the python client and get an api key -
pip install botmailroom
- Install the openai client and get an api key -
pip install openai
If you don’t want to use the python client, the REST API allows you to use the language of your choice. Tool schemas can be retrieved using the get tools endpoint.
Code
Make sure to replace YOUR_EMAIL_HERE
with the actual email address you want
to use for your inbox
Once the agent has started running, you should receive emails in your inbox. If you respond to the emails, the agent will continue to respond to your emails.