agent

Generate Action

Generate draft action with RAG search and guard checks.

Pipeline:

  1. rag.search(strict) - Search for relevant evidence
  2. guard.outbound.check - Safety checks
  3. Return DraftCard preview

SECURITY: user_id is extracted from JWT token (cannot be spoofed).

Args: request: Action generation request user: Current user (from JWT)

Returns: DraftCard with preview, evidence, and guard results

post/ai/generate-action

Request

  • Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.dialogbrain.com/ai/generate-action
  • Auth: none declared

Request body

thread_idstring required
messagesobject[] required
goalstring nullable
instructionsstring nullable
strict_ragboolean
channelstring nullable
account_idinteger nullable
recipient_namestring nullable

Response

Successful Response

action_idstring required
thread_idstring required
created_atstring date-time
metadataobject

Changes

No recorded changes to this operation across all 5 revisions of this API.