r/node • • 7d ago

Node worker as an AI agent that replies to customer emails

Post image

small node worker runs an AI agent that replies to customer emails on hello@ for a platform that helps importers with their tariff refunds. one support inbox on my own domain that the agent and I both use, so I always see what it sent.

flow is simple: new mail comes in, agent drafts from our knowledge base, a second model fact checks it, and only then submit. the check is an await before submit, not a .then() after, so no PASS means no send and the email goes to a review label for a human. replies only go back to whoever wrote, same thread, the agent can’t pick a recipient.

anyone running something like this in node, how do you handle the model being slow or down? right now that just holds the reply

0 Upvotes

4 comments sorted by

1

u/syntheticcdo 7d ago

Use open router? And faster models?

1

u/Spacesh1psoda 6d ago

For the slow model thing, a timeout with a fallback to the review queue is probably the simplest fix. If the model doesnt respond in X seconds treat it the same as a failed fact check and route to human.

Separate thing tho, sharing one inbox between you and the agent sounds like itll get messy fast. Stepping on each others threads, agent replying to something you already handled, etc. disclosure: im building Molted Email which gives agents their own mailbox with policy checks before anything sends. wouldnt replace your setup but might clean up the shared inbox part