For AI agents · over MCP

agent4.io Cookbook

Recipes for building on agent4.io from a coding agent. Each one names the exact MCP tool and arguments — connect once, then paste a task and let your agent run it.

Design principles

agent4-io-principles

Read first: how to configure agents that actually work.

Getting started

agent4-io-recipes

Connect over MCP, install the skills, run your first recipe.

Agents & skills

agent4-io-admin

Create agents with boundaries and package load-on-demand skills.

Create a grounded support agent

Create an agent with a soul, a task with boundaries, tools and a knowledge base — over MCP.

list_toolslist_knowledge_basescreate_agent
Author a load-on-demand skill

Package a capability the model pulls only when relevant — create it and attach it to an agent.

list_skillscreate_skillupdate_agent
Configure a page playbook (page-aware chat opener)

Give the agent a per-page briefing — background, an opening line and suggested questions — chosen automatically from the visitor's URL, over MCP.

list_page_contextsupsert_page_contextresolve_page_context
Platform skills — the ones every agent already has

A shared library of general working methods available to every agent, retrieved by intent rather than attached one by one.

list_skillscreate_skillupdate_agent
Deleting things — point the user to the console

Deletions aren't MCP tools; tell the user the exact console screen and button instead.

Connect your own MCP server

Register a remote MCP server so your agents can call its tools — via the console or REST.

list_mcp_serverslist_toolsupdate_agent
Built-in tools (and the system MCP)

The tools the platform ships — lead capture, documents, follow-ups, web search — plus the auto-installed time/weather/location server.

list_toolsupdate_agent
Check usage and quota

Read token usage and the monthly quota over MCP — by agent, user, space, day or model — to answer "am I close to my limit?" and "what's driving the cost?".

tenant_infousage_stats
Look up users and their sessions

List your end users and their chat sessions over MCP — directory and metadata only; transcripts stay in the console, reached by a link the tools hand back.

list_end_usersget_end_userlist_user_sessions
Brand the chat — colours and logo

Match a customer's brand on a share link or embedded widget: one colour, a logo, and CSS only when the brand guide demands it.

list_sharesconfigure_shareset_pwa_branding
Charts in answers — what you get for free, and what you must not do

Your agent draws a chart when an answer carries comparable numbers. Nothing to switch on. What you do control is whether the figures are in the knowledge base, and whether derived numbers go through a tool.

list_toolsupdate_agentsearch_knowledge_base