Replit Agent + Gork Mail
Gork Mail logo
✕
Replit Agent logo

Give Replit Agent its own inbox

Gork Mail is the best way to give Replit Agent its own inbox. Send email, receive replies, and manage full conversation threads from a dedicated inbox each bot owns.

Install

One command

Add the Gork MCP server with the command or config below, then restart Replit Agent. 13 email tools appear, each call scoped to the inbox you connect. The same MCP server serves CLI agents, editors, and the Gork API.

1Add GORK_API_KEY to your Repl Secrets (Environment Variables).
2Install the @gork/sdk package via npm or pip.
3Prompt Replit Agent to integrate transactional email and user verification into your web application.

Run directly in your terminal to install the MCP tool.

# In Replit Secrets tab:
GORK_API_KEY = "gork_live_YOUR_KEY"
# In Shell:
npm install @gork/sdk
Try it

One prompt away

Paste into Replit Agent chat when building full-stack apps. Copy it, paste it into Replit Agent — it calls the tools itself.

Replit AgentReplit Agent
Add transactional email using Gork Mail. Install @gork/sdk, add GORK_API_KEY in Replit Secrets, and implement a password reset email endpoint from auth@yourcompany.com.

Paste into Replit Agent — no code, no config

Why email

Why your Replit Agent agent needs its own inbox

One address per bot

Not one connection shared across the fleet. The native Gmail plugin gives every bot on your account the same credential. Gork Mail gives each bot a real address it owns.

Real inbound

The Gmail plugin lets your bot read your inbox. Gork Mail lets people, or systems, email the bot directly, with full thread history and reply_to_message.

Scoped blast radius

One flagged send scopes to one bot's address, not your entire Gmail reputation.

Code

Working code

Using Gork Mail inside a Next.js / Express Repl:

import { Gork } from "@gork/sdk"
const gork = new Gork({ apiKey: process.env.GORK_API_KEY })
export async function POST(req: Request) {
const { email } = await req.json()
await gork.messages.send({
inboxId: process.env.GORK_INBOX_ID!,
to: [email],
subject: "Your Replit Verification Code",
text: "Your one-time login code is 591240"
})
return Response.json({ success: true })
}
Templates

Templates

Live Replit Agent bots, each running on its own Gork Mail inbox. Open one to add it to your account and email it.

Sales

Lead

Qualifies inbound demo email. Replies with times or a self-serve link.

Prompt Trigger
“Monitor incoming sales inquiries on partnerships@yourcompany.com. If an enterprise lead emails, evaluate company size and reply with demo calendar links.”
Gork MailReplit Agent
Gork Mail

Support

Desk

Tier-one support inbox. Answers from your FAQ, escalates the rest.

Prompt Trigger
“Check support@yourcompany.com for unread tickets. Draft answers using our knowledge base and tag human engineers on billing disputes.”
Gork MailReplit Agent
Gork Mail

Engineering

Crash Triage

Ingests CI/CD crash dumps and error emails, locates the failing code, and opens a pull request.

Prompt Trigger
“Read incoming error emails from Sentry on alerts@yourcompany.com, parse the stack trace, locate the bug in our codebase, and reply with the commit fix.”
Gork MailReplit Agent
Gork Mail

Operations

Approval Gate

Human-in-the-loop send gate. Intercepts OTP codes or confirms actions.

Prompt Trigger
“Listen on verify-bot@yourcompany.com for authentication emails. Extract the 6-digit confirmation code and print it to complete automated signup.”
Gork MailReplit Agent
Gork Mail

Productivity

Scheduler

Negotiates meeting times over email until everyone agrees.

Prompt Trigger
“Coordinate meeting availability with external clients on schedule@yourcompany.com. Propose 3 alternate time slots and confirm upon agreement.”
Gork MailReplit Agent
Gork Mail

Executive

Threadmate

CC it on a thread. Reads the history and replies from your brief.

Prompt Trigger
“When CCed on email threads, summarize recent correspondence and draft a concise executive response for my review.”
Gork MailReplit Agent
Gork Mail
FAQ

FAQ

Common questions about Gork Mail and Replit Agent.

Yes! Free workspaces get instant access to inboxes on the shared pool or custom domains on paid tiers.
Get Started

Give your Replit Agent agent its own inbox

Free tier included. Dedicated inboxes ready in seconds.

Create an inbox for your agent

Deploy dedicated inboxes for your AI agents in seconds across any model, harness, or pipeline.