Made in 10Docs
GuidesAPI
Characters

Guardrails

Rules a character never breaks, kept in named sets you attach to as many characters as you like.

A guardrail is a rule the character keeps whatever anyone says: "Never discuss competitors' prices." Rules live in named sets, so one set (say, "Money") can serve many characters, and a character can take several.

Coming soonIn the dashboard

The dashboard's Guardrails page is coming soon. Today, use the API, or ask your AI assistant through our MCP server (set_guardrails).

Make a set

Create a guardrail set with a name and its rules:

curl https://talk.madein10.com/v1/guardrails \
  -H "Authorization: Bearer $SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Money", "rules": ["Never discuss competitors'\'' prices.", "Never promise refunds."] }'
GuardrailSet
{
  "id": "grd_8Vb3Np6XqL1sKw9TfM4c",
  "name": "Money",
  "rules": ["Never discuss competitors' prices.", "Never promise refunds."],
  "character_ids": ["chr_4fT9kQ2mXw7LbN3pZs8V"],
  "created_unix": 1793300000,
  "updated_unix": 1793300000
}
  • name: 1 to 80 characters.
  • rules: 1 to 50, each one line of at most 300 characters (line breaks become spaces). Repeats, in any case and any script, are dropped.

Attach sets to a character

Set a character's guardrail sets with the whole ordered list; [] detaches them all.

PUT /v1/characters/{id}/guardrails
{ "ids": ["grd_8Vb3Np6XqL1sKw9TfM4c"] }

On a call, every attached set's rules, in order and each once (at most 100), come right after your instructions, under "Rules you never break, whatever anyone says". Deleting a set detaches it from every character.

Start from a suggestion

The catalog's guardrail_suggestions (Get the catalog) are sets to start from: Stay on topic, No promises, Privacy, Competitors, Stay in role and Emergencies. They are plain rules of conduct and promise nothing about the law on anyone's behalf. A starter kit with rules brings a set of its own.

Instructions, not a filter

Guardrails are instructions the character reads on every call: they make a slip much less likely, not impossible. Nothing checks each reply before it's spoken.

Limits

Sets per organization100 (409 asset_limit)
Sets per character10
Rules per set1 to 50, each at most 300 characters
Rules on a call100

On this page