Sitemap

Building an AI Email bot: delivery price estimation

4 min readDec 15, 2024
Press enter or click to view image in full size

Hi,

It’s Alex, the solo founder of ProxiedMail.

Today I’m going to tell you have to build any AI Email bot/robot with ProxiedMail.

What’s the AI Email bot?

The AI Email Bot is a feature integrated into ProxiedMail that enables users to automate email responses by configuring a bot to reply on their behalf using OpenAI ChatGPT. It’s particularly useful for situations when you want to automate communication with your customers.

Key features

  • Customizable Prompt: bot owners can define specific instructions for the bot’s behavior, like answering questions from the perspective based on their inputs.
  • The bot leverages OpenAI models for generating responses.
  • CC to Real Address: All bot conversations can be copied to the bot owner email, allowing them to track interactions or intervene when needed.
  • Interruption Control: bot owners can stop the bot at any point by replying to an email, and switching the conversation to manual control.
  • Session Length: Configurable conversation window duration, after which the bot resets its context.
  • Easy Setup: Users can create and configure bots directly within the ProxiedMail UI, using their proxy emails.

What we can build?

So, we can build any email bot that would reply to someone's questions or requests based on the simple prompt that we have written down.
We can set up CC to our real email and get both bot replies and bot users messages.
Also, we can interrupt the conversation of the user with the bot by replying to the email. After our reply bot will stop replying to this user until his session ends.
When his session ends bot will start again when he receives a new message from the user.

Let’s build the delivery estimation bot

Let’s imagine the case: we’re a small company that is working in the shipment delivery area. We cannot hide many software engineers, but since our website is using something like Wix or WordPress we can easily manage the content of the pages.
We want to automatically calculate the price of the shipment from point A to point B for our customers.

Thus, we’re agreeing that the entry point for our potential customer inquiry could be simply the email address.
So, we need to have an email address with the bot attached to it.

We can easily build it with ProxiedMail, just by creating the proxy email and starting configuring the bot via UI:

Press enter or click to view image in full size
Press enter or click to view image in full size
It’s how the setting looks like

The main thing here is the prompt.
As our imaginary company is in France, let’s write down the prompt:

You’re an AI email delivery bot that would consult about the price of package delivery in France. You have to ask for the from destination and the to destination.
This destinations is in France. Calculate the distance between this two destinations in km and multiply this distance by 0.51 to get the price in EUR.
Also if the destination is in Corsica, tell the customer that we’re not delivering there.
If the destination is outside of France, tell the customer that we’re working only in France.

Other params I’m going to leave default

Testing

Now, in order to test the bot we would need to send the message to aideliverybot@pxdmail.com from real email address that is different from our real email address attached to this proxy email.

Press enter or click to view image in full size

As a bot owner I’ve got all incoming messages copied to my real address:

Press enter or click to view image in full size

Also, I can deploy from the bot owner email in order to start talking with the customer and stop the current conversation with the bot.

Press enter or click to view image in full size

If owner replies and you set up option “Allow Interruption” to true you will stop the conversation by that.

Setting up yourself

If you want to set up the AI email bot yourself, please visit the landing page:

https://proxiedmail.com/en/ai-email-bots

  1. Sign up for ProxiedMail
  2. Create proxy email
  3. Start configuring your prompt and the related options
  4. Test your AI email robot.

--

--

Alex Yatsenko
Alex Yatsenko

Written by Alex Yatsenko

A software engineer from Kyiv, living in Porto. Founder of ProxiedMail

No responses yet