Skip to content

Interactions API

Interaction APIs create the durable conversation record around workflow execution so transcripts, metadata, summaries, recordings, and debugging context remain inspectable.

TermDefinition
InteractionThe stored conversation session shown in the Interactions product area.
Interaction executionRuntime processing that advances the workflow for a specific interaction.
FinalizationThe step that marks an interaction complete and stores final metadata.
TranscriptOrdered messages, tool calls, tool results, and timestamps.
ActionEndpoint
Create an interactionPOST /llm-chain/interaction/create
Execute an interactionPOST /llm-chain/interaction/:id/execute
Finalize an interactionPOST /llm-chain/interaction/:id/finalize

Create the record before processing messages when your integration wants Octo to preserve the conversation in the Interactions UI.

Terminal window
curl -X POST "$OCTO_BASE_URL/llm-chain/interaction/create" \
-H "Authorization: Bearer $OCTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"workflowVersionId": "workflow_version_123",
"channel": "web",
"context": { "spaceId": "space_123", "externalUserId": "customer_123" }
}'

Execute the interaction when a user message, voice event, or integration event should advance the workflow.

Terminal window
curl -X POST "$OCTO_BASE_URL/llm-chain/interaction/interaction_123/execute" \
-H "Authorization: Bearer $OCTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"message": "Can I reschedule my appointment?",
"context": { "channel": "web" }
}'

Finalize after the conversation has ended so Octo can store closing metadata, summaries, sentiment, topic, and duration fields when configured.

Terminal window
curl -X POST "$OCTO_BASE_URL/llm-chain/interaction/interaction_123/finalize" \
-H "Authorization: Bearer $OCTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "reason": "completed" }'
StageWhat happens
CreatedThe interaction gets an ID, channel, workflow version, and initial context.
ExecutingMessages and runtime events advance the workflow graph.
WaitingThe workflow may pause until a resume event or user response arrives.
FinalizedSummary, topic, sentiment, duration, and transcript data are ready for review.
  1. Open Interactions and search for the created interaction.
  2. Confirm the channel, workflow version, and timestamps.
  3. Review transcript messages and tool call records.
  4. Use the execution path to identify the node where processing stopped or failed.
  5. Open the workflow version used by the interaction before making changes.

Can I execute without creating an interaction? Direct workflow execution exists for integration use cases, but interaction APIs are preferred when the conversation should be visible in the product history.

Can finalized interactions be edited? Treat finalized interactions as read-only records. Create a new interaction for a new conversation.