A reusable template for building a Notion custom agent that reads your support conversations (via the Enterpret MCP), finds agents who need coaching, and outputs coaching cards to a Notion database.

<aside> 💡

How to use this template: Do the 2-step setup in Part 1, then copy the single code block in Part 2 into your custom agent's Instructions field. No find-and-replace needed — the agent discovers your org slug, source, and field names itself by calling the Enterpret MCP on startup.

</aside>


Part 1 — Setup Guide

1A. Create the custom agent in Notion

  1. In your Notion workspace, open the AI panel and go to Custom Agents (or Notion AI → Agents → New).
  2. Click Create new agent. Name it something like Support Agent QA Coach.
  3. Paste the entire code block from Part 2 into the agent's Instructions field.
  4. (Optional) Link a Notion database where the agent should write coaching cards — use the schema in Part 2 → Notion Database Output.

1B. Add the Enterpret MCP connection

Enterpret exposes your org's feedback data (conversations, themes, sentiment, metadata) via a hosted MCP server. The agent will not work without it.

  1. In the agent's Connections / Tools panel, click Add MCP server.
  2. Enter the Enterpret MCP URL: https://wisdom-api.enterpret.com/server/mcp (confirm with your Enterpret CSM if this doesn't work — some orgs have a dedicated URL).
  3. Name the connection wisdom when prompted. The instructions in Part 2 reference tools as /wisdom:tool_name, so this name must match for the tool calls to resolve. If you name it something else, find-and-replace /wisdom: with your chosen prefix in the Part 2 block.
  4. Authenticate with your Enterpret account via the OAuth prompt. Grant access when asked.
  5. Confirm the Enterpret MCP tools appear in the agent's tool list (you should see initialize_wisdom, get_organization_details, get_schema, and query tools).

That's it. On first run the agent will introduce itself, call the MCP to auto-configure for your org, and ask you a couple of quick questions (which support source to use, which agents are AI bots to exclude) before producing coaching cards.


Part 2 — Agent Instructions (copy the entire block below)