Agent BrainsAgent Brains
n8n

AgentBrains Conversation

List conversations, retrieve conversation history, and send outbound agent messages from n8n.

AgentBrains Conversation

Use the Conversation resource when a workflow needs to inspect or continue customer conversations handled by AgentBrains. Conversation support is available in n8n-nodes-agent-brains version 3.3.0 or newer.

Operations

OperationUse it forRequired fieldsOptional fields
Get ManyFind conversations by filters.nonetestId, reason, location, disableAi, channel, type, status, source, recipient, campaign, sort, limit, page
Get HistoryRetrieve the transcript/history for one conversation.conversationIdnone
Send Agent MessageSave an outbound agent message in a conversation.conversationId, bodynone

Get Many filters

Select Conversation as the resource and Get Many as the operation.

FilterTypeDescription
testIdstringTest ID filter.
reasonstringReason filter.
locationstringLocation filter.
disableAibooleanDisable-AI flag filter.
channelstringConversation channel. Supported values: web-chat, email.
typenumberConversation type filter.
statusnumberConversation status filter.
sourcenumberConversation source filter.
recipientstringRecipient filter.
campaignstringCampaign filter.
sortstringSort expression.
limitnumberPage size.
pagenumberPage number starting from 1.

Expected output: a paginated conversation list returned by AgentBrains.

Get History

Select Conversation as the resource and Get History as the operation.

Required field:

  • conversationId: ID of the conversation to retrieve history for.

Expected output: the conversation history returned by the API.

Send Agent Message

Select Conversation as the resource and Send Agent Message as the operation.

Required fields:

  • conversationId: ID of the conversation to send the message to.
  • body: message text to send as the agent.

HTTP request body behind the node:

{
  "body": "message text"
}

This creates and saves an outbound agent message for the selected conversation.

Example: Find a conversation and send an agent reply

  1. Add the AgentBrains n8n node.
  2. Select Conversation as the resource.
  3. Select Get Many.
  4. Add filters such as channel = web-chat, status, recipient, or campaign.
  5. Select a conversationId from the returned items.
  6. Add another AgentBrains node.
  7. Select Conversation → Get History and pass the conversationId.
  8. Add another AgentBrains node.
  9. Select Conversation → Send Agent Message.
  10. Set conversationId and body.

Expected result: the workflow retrieves conversation context and saves an outbound agent message.

API mapping

n8n operationPublic HTTP API
Get ManyGET /conversations
Get HistoryGET /conversations/{conversationId}/history
Send Agent MessagePOST /conversations/{conversationId}/message

On this page