Suggest agent instructions
POST /v1/agents/{id}/suggest-instructions
Reads the tenant’s business profile + corpus signals + the agent’s current role, asks Claude to draft a tailored system prompt with privacy guards in place. Returns the draft for the admin to review-and-save. Refuses with 503 when no Anthropic key is configured at boot (dev environment without ANTHROPIC_API_KEY).
Authorizations
Personal Access Token. Send as Authorization: Bearer hq_pat_....
Path Parameters
Agent id
Response
A draft tailored system prompt for review
Claude's draft. Returned as plain text; caller saves via a follow-up PATCH /v1/agents/{id} {"instructions": "..."} after a human review pass. Never auto-persisted.