AI Writing Connections
AI writing connections let Mailrith draft content with your own provider account. This guide explains providers, API key and OAuth setup, workspace assignments, default models, connection statuses, and repair flows.
What AI Writing Connections Are
AI writing connections let Mailrith use your AI provider account to draft email, landing page, and automation content. Mailrith stores each connection, gives selected workspaces access to it, and lets each workspace choose a default connection and model.
These are AI Writing provider connections, not AI Agent connections. To connect an outside agent client that can inspect or operate permitted Mailrith resources, start with the AI Agent Quickstarts.
Mailrith supports OpenAI, Claude, and OpenRouter for AI writing connections. You can connect OpenRouter with an API key, or you can use the OpenRouter OAuth flow when that option is available.
AI writing connections are available on paid plans. If a workspace no longer has paid access, you can still open AI Writing Connections to view and delete existing connections. You cannot create new connections, edit existing connections, reconnect OAuth, or save workspace defaults until the workspace has paid access again. To enable the feature, review Billing and Plans.
Create An AI Writing Connection
- Click AI Writing Connections in the left sidebar.
- Click Create AI Writing Connection.
- In the connection drawer, select a Provider: OpenAI, Claude, or OpenRouter.
- If you select OpenRouter, choose a Connection Method: API Key or OAuth.
- Enter a clear Connection Name so teammates can identify this connection later.
- For API key connections, paste the provider key into OpenAI API Key, Claude API Key, or OpenRouter API Key.
- For OpenRouter OAuth, click Continue to OpenRouter, then finish the authorization flow in OpenRouter.
- Use Workspace Access to select each workspace that can use this connection.
- Click Connect OpenAI, Connect Claude, or Connect OpenRouter, depending on the provider you selected.
Use a name such as "Company OpenAI Production" or "Agency OpenRouter Shared." A clear name helps teammates choose the correct connection and helps owners identify which provider account receives the AI charges.
If the selected workspace plan does not include AI writing connections, the Create AI Writing Connection button is not available. You can delete an old connection from the existing connections table if you need to clean up access.
Workspace Defaults
After you create a connection, choose a default connection and model for each workspace that should use AI writing. Mailrith preselects the default when someone opens AI Writing in a broadcast, sequence, landing page, or automation.
- On the AI Writing Connections page, scroll to Workspace AI Writing Defaults.
- Find the workspace row that you want to configure.
- Choose the default connection in Default Connection.
- Choose the default model in Default Model. The field shows recommended models first. Type in the field to search for more supported models from the same provider.
- Click Save in the defaults area.
Defaults apply to one workspace at a time. This is useful when one Mailrith account manages multiple brands or clients. Each Workspace can use a different provider account, a different model, or no AI default.
If you remove a workspace from a connection, Mailrith clears any workspace defaults that used that connection. The workspace then cannot keep using a connection that it can no longer access.
Available Models
The model field shows recommended writing models first. Type a model name to search the available options for your provider. If no model is available, choose another connection or contact Mailrith support.
Connection Statuses
- Active: Mailrith can use the connection for AI drafting.
- Needs attention: the saved key or OAuth authorization needs to be repaired before Mailrith can use the connection again.
A connection can change to Needs attention when the provider says the saved key is not valid or the OAuth authorization is no longer available. To repair the connection, edit it and update the API key, or reconnect the OAuth provider.
Temporary provider problems can still make one AI draft fail. Examples include rate limits, outages, slow responses, billing holds, or account quota limits. These issues do not turn the connection into Needs attention. Wait and try again, update the provider account outside Mailrith, or switch to another connection.
If a workspace default uses a connection that needs attention, Mailrith still shows that saved default and gives you a Repair Connection action. Repair the connection before using it as the workspace default again.
Repair, Delete, And Use Safely
If AI drafting fails inside a broadcast, sequence, landing page, or automation, Mailrith can link you to the AI Writing Connections page and open the affected connection for repair. After you repair the connection, return to the draft and try AI drafting again.
Deleting a connection removes it from AI Writing Connections and clears workspace defaults that used it. Existing email content that you already generated stays in your drafts because Mailrith treats applied AI output as normal email content.
- Use provider keys that belong to the organization, not a temporary personal account.
- Assign connections only to workspaces that are allowed to use that provider account.
- Review provider billing and usage outside Mailrith so you understand AI costs.
- Do not paste provider keys into campaign copy, support chats, or shared documents.