Back to cookbook

AI Prompt to Draft an SMS Marketing Campaign Using Twilio's MCP Server

0 views Published

Make this prompt yours

Share

This Twilio MCP prompt is for marketers and growth teams who send SMS campaigns through Twilio and want an AI assistant to draft the message sequence, segment logic, and send schedule in one pass. Connecting the assistant to Twilio's MCP server lets it reference real account details, such as existing messaging services or opted-in number pools, instead of producing generic SMS copy that has to be manually adapted before anything can actually send.

The prompt works best as a planning and drafting layer, not an autonomous sender: it asks the model to propose the campaign structure, write each message variant within SMS character limits, and flag any copy that might trip carrier filtering (excessive links, spammy phrasing, missing opt-out language) before a human reviews and triggers the actual send through Twilio. That separation matters for SMS specifically, since carriers penalize accounts for low-quality or non-compliant messages in ways that are hard to undo.

Because SMS copy lives or dies on brevity and clarity, it's worth running the draft through a prompt optimizer in business mode before connecting to Twilio at all, so the instructions about tone, length, and compliance language are tight from the start.

Prompt template

Make this prompt yours

prompt-template
332 tokens
Role: You are an SMS marketing copywriter with read access to Twilio account and messaging data through an MCP connection. Context: - Campaign goal: [e.g., product launch, cart abandonment recovery, re-engagement] - Target segment: [e.g., customers who purchased in last 30 days, opted-in newsletter subscribers] - Messaging service or number pool: [TWILIO_MESSAGING_SERVICE_ID] - Character limit per message (including opt-out text): [CHARACTER_LIMIT] - Number of messages in sequence: [NUMBER_OF_MESSAGES] - Brand voice: [e.g., casual and friendly, concise and professional] Task: 1. Propose a campaign structure: how many messages, spaced how far apart, and the purpose of each. 2. Write two copy variants for each message, staying within the character limit including required opt-out language. 3. Flag any phrasing that could trigger carrier spam filters (excessive punctuation, shortened links, all-caps, certain trigger words). 4. Confirm each message includes a clear call to action and the required STOP/opt-out instruction. Constraints: - Do not draft any message without the opt-out instruction included in the character count. - Do not propose sending the campaign automatically; output is for human review before any Twilio send is triggered. - Keep each variant's tone consistent with the stated brand voice. Output format: - Section 1: Campaign structure (message count, timing, purpose per message) - Section 2: Message variants (labeled A/B per step, with character count shown) - Section 3: Compliance flags per variant, or "none identified"

Want it sharper? Optimize this prompt with Prompt Optimizer, check it with the Prompt Debugger or shorten it with the Token Optimizer.

Example input

example-input
58 tokens
Campaign goal: cart abandonment recovery Target segment: customers who added items to cart but didn't check out in 24 hours Messaging service: MG_cart_recovery_01 Character limit per message: 160 Number of messages in sequence: 2 Brand voice: casual and friendly

When to use it

  • Planning a multi-message SMS drip sequence for a product launch or promotion
  • Drafting win-back or cart-abandonment texts that pull customer context from a connected Twilio-linked CRM
  • Writing SMS variants for A/B testing different calls to action within character limits
  • Checking draft SMS copy for compliance red flags before it goes to a human for final approval and sending

Best practices

  • Always keep a human-in-the-loop approval step between the AI draft and the actual Twilio send, especially for anything touching opted-in contact lists
  • Give the assistant your actual character limit per segment (including any required opt-out text) instead of letting it guess SMS length constraints
  • Ask explicitly for carrier-compliance flags (shortened links, spam trigger words, missing STOP instructions) as part of the output, not as an afterthought
  • Test message variants on a small segment before scaling a sequence to the full opted-in list

Common mistakes

  • Letting the AI draft copy without specifying character limits, resulting in messages that get truncated or split unexpectedly
  • Skipping the opt-out/STOP language requirement and getting the campaign flagged or blocked by carriers
  • Treating MCP access to Twilio as permission to auto-send without a review step
  • Writing one generic message instead of asking for A/B variants, missing an easy way to test what actually converts

FAQs

Can I use this SMS prompt with ChatGPT, Claude, or Gemini?

Yes, the template is written to work across models. The Twilio MCP connection itself depends on which assistant you're using it with, but the prompt structure and copy constraints transfer directly.

How do I keep SMS campaigns from getting flagged by carriers?

Always include opt-out language, avoid excessive links or punctuation, and ask the AI to explicitly flag risky phrasing as part of its output rather than assuming the copy is clean.

Should the AI be allowed to send the campaign directly through Twilio?

No. Use MCP access for drafting and reading account context, but keep a human approval step before any message actually sends, especially to a real opted-in list.

What character limit should I give the AI for SMS drafts?

Use your actual per-segment limit including the required opt-out text, typically 160 characters for a single SMS segment, so the draft doesn't need rewriting after the fact.

What tool can help me tighten this prompt before connecting it to Twilio?

Prompt Optimizer — its business mode helps sharpen vague instructions about tone, length, and compliance language before the assistant touches real campaign data.

Found this prompt useful? Share it.

Share

More in Marketing & Sales

Marketing & Sales

AI Prompt to Write a Customer Referral Request Email That Converts

This referral request email prompt is for small business owners, SaaS founders, and marketers who want to turn happy customers into a steady…

You are a customer marketing specialist writing a referral request email.

CONTEXT:
- Product/service: [WHAT YOU SELL]
- Customer segment receiving this email: [DESCRIPTION, e.g. "customers who just renewed for a 2nd year"]
- Trigger moment: [WHY THIS EMAIL IS BEING SENT NOW]
- Referral incentive: [DESCRIBE INCENTIVE, OR STATE "no incentive, goodwill ask only"]
- Desired action: [e.g. "share a referral link" or "forward to one colleague"]
- Brand tone: [e.g. "warm and casual" or "professional and concise"]

TASK:
1. Write 3 subject line options, each under 50 characters.
2. Write the email body (120-180 words) that:
   - Opens by referencing the specific trigger moment, not a generic greeting
   - States the ask clearly in one sentence
   - Explains the incentive (if any) in one sentence, without overselling it
   - Ends with one clear call to action and link placeholder
3. Keep the tone matched to the brand tone specified above, and avoid sales language like "don't miss out" or "act now."

Make this prompt yours

Marketing & Sales

AI Prompt to Analyze Sales Transactions via PayPal's MCP Server

This prompt is for small business owners and sales teams who want an AI assistant like ChatGPT or Claude to pull real transaction data from…

ROLE: You are a sales analyst with access to PayPal transaction data through an MCP connection.

CONTEXT:
- Account or business name: [ACCOUNT_NAME]
- Date range: [START_DATE] to [END_DATE]
- Currency: [CURRENCY_CODE]
- Comparison period (if applicable): [PRIOR_PERIOD]

TASK:
1. Retrieve completed transactions, refunds, and chargebacks for the specified date range through the MCP connection.
2. Calculate total gross revenue, total refunds, and net revenue for the period.
3. Compare net revenue against the comparison period if one is given, and state the percentage change.
4. Identify the 3 largest individual transactions in the period.
5. Summarize the findings in plain language suitable for a non-technical stakeholder.

CONSTRAINTS:
- Only report figures retrieved from actual transaction data, not estimates.
- Clearly separate gross revenue, refunds, and net revenue in the output.

OUTPUT FORMAT:
- Gross revenue: [amount]
- Refunds/chargebacks: [amount]
- Net revenue: [amount]
- Change vs. comparison period: [percentage or "not provided"]
- Top transactions: [list of 3]
- Summary: [plain-language explanation]

Make this prompt yours

Marketing & Sales

ChatGPT Prompt to Write a Sales Follow-Up Email After a Discovery Call

This prompt helps sales reps and founders write a sales follow up email after a discovery call, turning call notes into a clear, personalize…

Role: You are a sales professional writing a follow-up email after a discovery call.

Context:
- Prospect name and company: [PROSPECT_NAME_AND_COMPANY]
- Key pain points or goals they mentioned: [PAIN_POINTS_OR_GOALS]
- What was discussed or demoed on the call: [CALL_SUMMARY]
- Agreed next step: [NEXT_STEP]
- Your name and role: [YOUR_NAME_AND_ROLE]

Task:
Write a follow-up email that:
1. Thanks them for their time and references one specific detail from the call
2. Briefly connects their stated pain point or goal to what you discussed
3. Confirms the agreed next step with a specific action and, if relevant, a suggested date or deadline
4. Closes with a clear, low-friction call to action

Constraints:
- Keep the email under 150 words
- Do not introduce any pricing, timeline, or commitment that wasn't part of the provided call summary
- Avoid generic opening lines like "I hope this email finds you well"

Output format:
A complete email with a subject line, written in a professional but conversational tone.

Make this prompt yours