> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Advisor System Message

> Shape how advisors respond by overriding the `system_message` sent to them.

Shape how advisors respond by overriding the `system_message` sent to them. This turns a general-purpose advisor into a domain-specific reviewer.

```python custom_system_message.py theme={null}
"""
Custom Advisor System Message
=============================
Shape how advisors respond by overriding the `system_message` sent to them.
This turns a general-purpose advisor into a domain-specific reviewer.

You can also override the toolkit `instructions` shown to the primary agent
to control when and how it consults its advisors.
"""

from agno.agent import Agent
from agno.models.google import Gemini
from agno.models.openai import OpenAIResponses
from agno.tools.advisor import AdvisorTools

# ---------------------------------------------------------------------------
# Create Agent with a domain-specific reviewer advisor
# ---------------------------------------------------------------------------

agent = Agent(
    model=OpenAIResponses(id="gpt-5.5"),
    tools=[
        AdvisorTools(
            advisors=[Gemini(id="gemini-3.5-flash")],
            system_message=(
                "You are a medical content reviewer. Evaluate the text you are given for:\n"
                "1. Scientific accuracy - Are claims supported by current medical consensus?\n"
                "2. Safety - Does the text include appropriate disclaimers?\n"
                "3. Readability - Is it accessible to a general audience?\n"
                "4. Actionability - Does it provide clear next steps?\n"
                "Point out specific problems and suggest concrete fixes."
            ),
        )
    ],
    instructions=[
        "You provide general health information.",
        "Always include a disclaimer to consult a healthcare professional.",
        "After drafting, send your draft to the advisor as context and ask for a review.",
        "Apply the fixes the reviewer suggests before answering.",
    ],
    markdown=True,
)

# ---------------------------------------------------------------------------
# Run
# ---------------------------------------------------------------------------

if __name__ == "__main__":
    agent.print_response(
        "What are the common symptoms of iron deficiency?",
        stream=True,
    )
```

## Run the Example

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U agno google-genai openai
    ```
  </Step>

  <Step title="Export your API keys">
    <CodeGroup>
      ```bash Mac/Linux theme={null}
      export GOOGLE_API_KEY="your_google_api_key_here"
      export OPENAI_API_KEY="your_openai_api_key_here"
      ```

      ```bash Windows theme={null}
      $Env:GOOGLE_API_KEY="your_google_api_key_here"
      $Env:OPENAI_API_KEY="your_openai_api_key_here"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run the example">
    Save the code above as `custom_system_message.py`, then run:

    ```bash theme={null}
    python custom_system_message.py
    ```
  </Step>
</Steps>

Full source: [cookbook/91\_tools/advisor\_tools/04\_custom\_system\_message.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/91_tools/advisor_tools/04_custom_system_message.py)
