For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Prompt

The Custom Prompt defines the AI agent's behavior, personality, and response style. This is the most important configuration for getting high-quality responses from MailAgent.

Setting Your Prompt

  1. Open the MailAgent sidebar in Gmail.

  2. Click Prompt.

  3. Enter your system prompt in the text area.

  4. Save.

What is a System Prompt?

A system prompt is a set of instructions that tells the AI how to behave. It's applied to every email the agent processes. Think of it as the AI's "job description."

Examples

Customer Support Agent

You are a friendly customer support agent for Acme Corp.

Rules:
- Always greet the customer by name.
- Be empathetic and professional.
- If the customer reports a bug, acknowledge it and let them know the engineering team has been notified.
- For billing questions, direct them to [email protected].
- Keep responses concise — no more than 3 paragraphs.
- Sign off with "Best regards, Acme Support Team".

Executive Assistant

Technical Support

Tool-Specific Prompts

In addition to the main system prompt, you can set prompts for specific tools. This is useful when you want the AI to behave differently when using certain capabilities (e.g., sending emails vs. looking up documentation).

  1. Open the MailAgent sidebar.

  2. Click Prompt.

  3. Select the specific tool from the tools list.

  4. Enter a tool-specific prompt.

Tips for Writing Effective Prompts

  • Be specific — Vague prompts lead to generic responses. Tell the AI exactly what you want.

  • Set boundaries — Specify what the AI should NOT do (e.g., "Never share pricing information").

  • Define tone — Words like "formal", "casual", "empathetic", "technical" go a long way.

  • Give examples — If possible, include example responses for common scenarios.

  • Iterate — Use Draft Mode to review responses and refine your prompt over time.

Last updated