What is an Agent?
An agent in Placet represents an external AI system, automation workflow, or no-code tool that sends messages to humans for review. Each agent gets its own chat channel in the inbox.Creating an Agent
Agents are created through the Settings → Agents page in the web UI, or via the API. Each agent has:- Name: displayed in the inbox sidebar
- Description: optional context about the agent’s purpose
- Avatar: optional visual identifier
Authentication
Agents authenticate via API Keys, created in Settings → API Keys. API keys are prefixed withhp_ for easy identification.
Message Types
Agents can send different types of messages:Plain text
With review (approval buttons)
With plugin rendering
Review Types
Agents can request human input by adding areview object to any message. Each review type renders a different interactive UI.
Approval
Presents styled buttons for a yes/no or go/no-go decision. Optionally allows a comment.primary, danger, secondary, ghost. Response: { "selectedOption": "approve", "comment": "Looks good" }.
Selection
Shows radio buttons (single) or checkboxes (multi) for the user to choose from.{ "selectedIds": ["option_a"] }.
Form
Renders a dynamic form with multiple field types. Supports 12 field types:text, number, email, url, textarea, select, checkbox, date, time, datetime, range, password.
{ "environment": "prod", "version": "2.1.0", "notify": true }.
Text Input
Shows a textarea for free-text responses. Supports markdown preview and character limits.{ "text": "The deployment failed because..." }.
Freeform
Accepts any JSON response. Used primarily with plugins that define their own response UI.Review Options
All review types support optional fields:| Field | Description |
|---|---|
expiresInSeconds | Auto-expire after N seconds (default: 86400 / 24h) |
expiresAt | Expire at a specific ISO timestamp (max: 36h) |
callback | Legacy inline webhook { url, method?, headers? } |
Message Status
Each message can carry astatus that controls its visual appearance in the chat:
| Status | Use case |
|---|---|
info | Neutral status update (default) |
success | Task completed successfully |
warning | Needs attention or pending decision |
error | Something went wrong |
File Attachments
Agents can upload files and attach them to messages. Upload a file first, then reference it by ID:Agent Status
Agents can report their operational status via the heartbeat endpoint:| Status | Description |
|---|---|
active | Agent is running normally |
busy | Agent is processing a task |
error | Agent encountered an error |
offline | Agent is not connected |
