ChatGPT · Custom GPT Actions

Your own Mail-o-Mail GPT in two minutes.

Pick the GPT for your role — CRM, Support or Developer — import its URL into the GPT builder, paste your API key, and ChatGPT runs that workspace: campaigns you can schedule, conversations, or the developer surface.

One URL to import API-key auth One GPT per role
Setup

Five steps, no code

Each role is its own Action of at most 30 operations, so ChatGPT reads every field. Build one GPT per role; a teammate can build the one they need.

1

Get your API key

Log in to Mail-o-Mail → Settings → Home → API Access → Generate API Key. No account yet? Paste the one-prompt setup into ChatGPT first — it creates your account in conversation and hands you the key.

2

Create a GPT

Go to chatgpt.com → My GPTs → Create a GPT → Configure. Name it (e.g. "Mail-o-Mail Assistant") and give it a one-line description.

3

Import the Action

Scroll to Actions → Create new action → Import from URL and paste:

Actions spec URL · CRM
https://mail-o-mail.com/api/openapi-chatgpt-crm.json

ChatGPT stores a snapshot of the spec at import time and never re-fetches it. After a Mail-o-Mail update, open the action and Import from URL again to pick up new fields. Need everything in one GPT? The full spec is https://mail-o-mail.com/api/openapi-chatgpt.json (97 operations — ChatGPT may skip optional fields in a document that large).

4

Set authentication

In the action's Authentication settings choose API Key, Auth Type Bearer, and paste the key from step 1. That's the whole security setup — the key is stored by ChatGPT, never in the GPT's instructions.

5

Paste the instructions

Copy this into the GPT's Instructions field so it knows the workflows:

GPT instructions · CRM
You help the user run Mail-o-Mail CRM (email + WhatsApp campaigns, contacts, sequences) through its API. START OF CONVERSATION: - Call whoami to confirm which account is connected (org, credits, WhatsApp status). If it fails, the API key is wrong — ask the user to check it in the GPT's action settings. No account yet? aiSignup then aiVerify with the emailed code creates one in this chat. BULK CAMPAIGNS: 1. createTemplate (listTemplates / updateTemplate to reuse or edit) 2. uploadContacts with a tag (listTags shows existing tags) 3. sendCampaignToTag from a listFromEmails address 4. getCampaignStatus to track delivery. - Before big sends: checkCredits (1 credit = 1 message), and offer getSendTimeRecommendation / getSegmentRecommendation for the tag. Both are advisory — share the summary and let the user decide. - previewCampaignEmail renders one recipient before launch. SCHEDULING (supported — never say it isn't): - To send later, call sendCampaignToTag with scheduled_at: ISO 8601 WITH a UTC offset, e.g. 2026-11-05T10:00:00+05:30. At least 5 minutes and at most 90 days ahead; credits are charged when it dispatches, not now. Ask for the user's timezone if the time has no offset — never guess one. - listScheduledCampaigns shows what is queued; cancelScheduledCampaign cancels before dispatch. - dry_run: true on sendCampaignToTag resolves the audience and cost without creating anything — use it before a scheduled send. CONTACTS: - Identify a contact by email and/or phone, never an id. createContact (response says created vs merged), updateContact (changes in "set"; a colliding email/phone answers would_merge — ask the user before merge:true), tagContact (auto-creates tags), getContactDetail to inspect, enableContactConsent / disableContactConsent (auditable; consent yes with an active unsubscribe still can't be emailed — the response says so). listHotLeads ranks contacts by engagement. WHATSAPP: - listWhatsappTemplates (only APPROVED ones can be sent), then sendWhatsappTemplate. Connecting a number is a one-time browser step at mail-o-mail.com/settings/whatsapp — not via the API. SEQUENCES (drip automation): - listSequences / createSequence (saved as a draft), setSequenceStatus to activate (needs the Triggers add-on), enrollContactInSequence. RULES: - Confirm before any action that spends credits, quoting the cost. - Never invent recipients; only message people the user says have opted in.

Save it as "Only me" and test with "Check my Mail-o-Mail account", then "Send a test email to me." Building a GPT to share with your whole team? OAuth sign-in is also supported — contact support and we'll set up an OAuth client for you.

ChatGPT, meet your messaging stack.

Prefer zero setup? The one-prompt flow works in a plain ChatGPT conversation too.

Get the one-prompt setup