Skip to main content

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 from the inbox sidebar (click + New Agent), 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 with hp_ 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 a review 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.
Button styles: primary, danger, secondary, ghost. Response: { "selectedOption": "approve", "comment": "Looks good" }.

Selection

Shows radio buttons (single) or checkboxes (multi) for the user to choose from.
Response: { "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.
Response: { "environment": "prod", "version": "2.1.0", "notify": true }.

Text Input

Shows a textarea for free-text responses. Supports markdown preview and character limits.
Response: { "text": "The deployment failed because..." }.

Freeform

Accepts any JSON response. Used primarily with plugins that define their own response UI.
Response: any JSON object.

Review Options

All review types support optional fields:

Message Status

Each message can carry a status that controls its visual appearance in the chat:

File Attachments

Agents can upload files and attach them to messages. Upload a file first, then reference it by ID:
Files are previewed inline in the chat. Supported formats include images, PDFs, video, audio, Office documents, spreadsheets, code files, and more. Users can annotate images directly in the preview.

Inline HTML Attachments

When a message contains a single text/html attachment and Inline HTML rendering is enabled in chat settings, Placet renders that file inside a sandboxed iframe. This is useful for lightweight interactive demos, status panels, or self-contained UI mockups, but the iframe has important limits:
  • Use addEventListener() instead of inline event attributes like onclick
  • Do not rely on <form> submission
  • Do not rely on alert(), confirm(), or prompt()
  • Do not rely on window.open() or popup flows
  • Regular CSS, DOM manipulation, and <script> tags work
In practice, inline HTML attachments should be written as self-contained HTML/CSS/JS pages that do all interaction inside the document itself.

Agent Status

Agents can report their operational status via the heartbeat endpoint:
The status is displayed in the chat sidebar and on a dedicated Status page that shows all agents with uptime, message statistics, and a status history timeline.