Lovable + Gork Mail
Gork Mail logo
✕
Lovable logo

Give Lovable its own inbox

Gork Mail is the best way to give Lovable 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 Lovable. 13 email tools appear, each call scoped to the inbox you connect. The same MCP server serves CLI agents, editors, and the Gork API.

1In Lovable, ask the assistant to add email functionality using Gork Mail.
2Add GORK_API_KEY in your Lovable project environment settings.
3Lovable automatically writes the backend endpoint or Supabase Edge Function using @gork/sdk.
4Test your app: submit a form or trigger an action to send a verified email.

Run directly in your terminal to install the MCP tool.

npm i @gork/sdk
Try it

One prompt away

Paste into Lovable chat to instantly build complete email workflows. Copy it, paste it into Lovable — it calls the tools itself.

LovableLovable
Integrate Gork Mail using @gork/sdk. Create a server action to send user welcome emails from "support@yourcompany.com" using GORK_API_KEY from environment variables.

Paste into Lovable — no code, no config

Why email

Why your Lovable 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

Call Gork Mail from your Lovable Next.js or Vite backend route:

import { Gork } from "@gork/sdk"
export async function sendWelcomeEmail(userEmail: string, userName: string) {
const gork = new Gork({ apiKey: process.env.GORK_API_KEY! })
return await gork.messages.send({
inboxId: process.env.GORK_INBOX_ID!,
to: [userEmail],
subject: `Welcome to our platform, ${userName}!`,
html: `<h1>Welcome!</h1><p>We are thrilled to have you on board.</p>`
})
}
Templates

Templates

Live Lovable 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 MailLovable
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 MailLovable
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 MailLovable
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 MailLovable
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 MailLovable
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 MailLovable
Gork Mail
FAQ

FAQ

Common questions about Gork Mail and Lovable.

Yes. Lovable can generate TypeScript code, edge functions, and UI forms using the official @gork/sdk package.
Get Started

Give your Lovable 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.