Skip to main content

Example prompts

Copy one of these into Claude, Cursor or VS Code once you've connected the server.

Start from a template​

Use the Custodian Labs customer-support template, but add a third agent for refunds
and turn on privacy for every agent. Generate the Python code.

Describe it from scratch​

Build me a Custodian Labs squad that researches a company on the web, analyses its
competitors, and writes a one-page brief. Use workflow routing and gpt-6-luna for
the research step. Validate it, then generate the code.

RAG over your files​

I have handbook.pdf and benefits.xlsx. Create a Custodian Labs HR assistant that
answers only from those files and says so when it doesn't know. Generate the code.

Ask about the platform​

Which Custodian Labs routing mode should I use if every message needs to go through
a classifier and then a writer?

Then run it​

Save the code​

Save what your assistant generates as agent.py.

Install the SDK and set your key​

pip install custodian-labs
export CUSTODIAN_SDK_API_KEY="custodian_labs_..."

Run it​

python agent.py

The script prints the share link for your new agent. It also appears in My AIs.

Tips​

  • Ask it to validate. "Validate it first" makes the assistant call validate_flow and fix problems before writing code.
  • Be specific about routing. Say "route by topic", "hand off" or "run in order" to get single, chain or workflow.
  • Name the files. Tell it the exact file names you'll attach, so the code matches.