hotline.email: AI Powered Multi-role single point inbound email categorization with Postmark and Agent.ai
Fayaz

Fayaz @fm

About: Software Engineer 𑁍 Thinker 𑁍 Problem Solver. Interests: AI, Software Development, Web Security, Privacy, Nature, Philosophy, History, Spirituality, Politics, Conversation.

Location:
Bangladesh
Joined:
Nov 12, 2017

hotline.email: AI Powered Multi-role single point inbound email categorization with Postmark and Agent.ai

Publish Date: Jun 9
25 11

Update: rethinking hotline.email

Working with hotline.email with new and powerful AI based user facing email application. Stay Tuned for future updates!


This is a submission for the Postmark Challenge: Inbox Innovators.

What I Built

This is a MVP concept demonstration project, where I'll demonstrate how Postmark's inbound webhook and domain forwarding features can be directly integrated with an AI agent created with Agent.ai Platform, to act as either a middle-wire layer or as a decision making layer.

Leveraging the power of LLMs and other features of Agent.ai, anyone can supercharge Postmark's inbound email feature and create a full featured AI powered application layer for their business needs.

Demo

Following is the demo MVP AI Agent:

HotLine.email AI Agent

As it is built, any email sent to any @HotLine.email address will be process, categorized and sent to a pre-configured email address based on the content of the email and the configuration JSON.

Note: This agent should not be used directly, rather its webhook should be configured in Postmark's inbound webhook setting like the following:

Postmark webhook setting

TESTING

To test if it works as advertised, you'll just have to provide your own configuration JSON within your email's text (say at the end of the original email content).

That way, the processed email will go to an email given in your own provided configuration, instead of the pre-configured email set by HotLine.email Agent.

JSON configuration example:

{
  "support": {
    "description": "All support related email should go here",
    "email": "support@fayaz.dev"
  },
  "offer": {
    "description": "All offer and opportunity related promotional emails should go here. These are external offers.",
    "email": "offers@fayaz.dev"
  },
  "hr": {
    "description": "All human resource related email should go here",
    "email": "hr@fayaz.dev"
  },
  "sales": {
    "description": "All sales related email should go here. These are related to our own product sales query",
    "email": "sales@fayaz.dev"
  },
  "fallback": {
    "description": "This is the fall back email - if nothing matches or you are unsure, choose this email",
    "email": "fallback@fayaz.dev"
  }
}
Enter fullscreen mode Exit fullscreen mode

Later the Agent will be updated so that someone can claim their own @HotLine.email and configure how any inbound email will be processed and forwarded if an email is sent to their own example@HotLine.email address.

Code Repository

This agent's build actions (source) is shared in public on Agent.ai. So anyone will be able to see or clone the AI agent from the following link after registering with Agent.ai.

HotLine.email AI Agent's Source Code

HotLine.email AI Agent's Source Code

How I Built It

  • Used Dynadot for registering and DNS configuring the hotline.email domain name - as you'll need a domain name to work with Postmark.

Dynadot DNS configuration

Agent'ai web hook

Conclusion

I was pleasantly surprised by Postmark's inbound feature and that how easy it was to work with Agent.ai to create a powerful AI agent!

It was a great experience for me!

Comments 11 total

  • Futuritous
    FuturitousJun 14, 2025

    Cool!

  • Futuritous
    FuturitousJun 14, 2025

    Just sent the following email to contact@hotline.email with the + feature of Gmail (my actual email replaced with myemail in the following example).

    It worked like a charm! I got the return email to myemail+test@gmail.com, as given in the JSON within the email. Cool!

    Hi,
    
    This is a test to see if the categorization works!
    
    Thanks.
    
    {
      "support": {
        "description": "All support related email should go here",
        "email": "myemail+support@gmail.com"
      },
      "test": {
        "description": "All test related and fallback emails should go here.",
        "email": "myemail+test@gmail.com"
      }
    }
    
    Enter fullscreen mode Exit fullscreen mode

    Question: Are you planning on releasing an actual hotline email address in your @hotline.email to other businesses? Could be an interesting idea!

    Nice domain name BTW. Very relevant to the MVP you've built!
    All the best wishes.

    • Fayaz
      FayazJun 14, 2025

      Thanks! 🥰

      Plan with @hotline.email:

      Yeah, that was the initial idea. The MVP here demonstrate only a small part of it.

      Of course, first I'll have to evaluate if people have interest in that sort of implementation.

      However, I think having a single <business-name>@hotline.email that analyzes incoming emails, auto answers based on existing business documents and re-routes the incoming emails to proper channels (e.g. sales, support etc.) can be very useful!

      • Futuritous
        FuturitousJun 17, 2025

        This could be awesome!

        Just subscribe for a single email address and have all that service?

        Many small businesses may actually want something like that, without setting up all that themselves.

        I think you should launch a product and test the popularity of the idea in Product Hunt!

        The domain name is perfect for the idea, so yeah, go ahead with it!
        All the best.

        • Fayaz
          FayazJun 17, 2025

          Thanks!
          Will definitely consider it 🥰

  • Futuritous
    FuturitousJun 14, 2025

    Tested with another config.

    The return email came correctly, but this time it went to spam!
    I guess I need to stop testing this. LOL!

    • Fayaz
      FayazJun 14, 2025

      LOL, yeah, that's probably is not a good idea!
      I only have a limited account with 100 ish emails with the Postmark account.

  • Fayaz
    FayazJun 14, 2025

    My message to Postmark team:

    I think if you activate inbound email feature in your $15 package, you'll gain many more customers, because of how easy it is to use AI infrastructure like Agent.ai without paying a lot of money. Many of them will not be interested in $60+/mo price point.

  • Robin IT
    Robin ITJun 14, 2025

    Nicely done my friend!
    Salute!

    • Fayaz
      FayazJun 14, 2025

      Thanks mate!

Add comment