log_conversation
Log a conversation entry to the history store with customer ID, channel, direction, content, and status for accurate record-keeping.
Instructions
Log a conversation entry to the conversation history store
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customerId": "<customerId>",
"channel": "<channel>",
"direction": "<direction>",
"content": "<content>",
"status": "<status>"
},
"name": "log_conversation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | Message delivery status | |
| channel | Yes | Communication channel used | |
| content | Yes | Message content | |
| metadata | No | Additional metadata (tags, campaign name, etc.) | |
| direction | Yes | Direction of the message | |
| messageId | No | Provider message ID for cross-referencing | |
| customerId | Yes | Customer identifier (phone number, email, or user ID) |