inject_context
Inject context data into a Cognigy.AI session to set user data, preferences, or state before or during conversations. Context is shared state accessible by flow nodes.
Instructions
Injects context data into a Cognigy.AI session. Context is shared state accessible by flow nodes. Use this to set user data, preferences, or state before/during conversations.
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": {
"sessionId": "<sessionId>",
"userId": "<userId>",
"context": "<context>"
},
"name": "inject_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | The user ID for the session | |
| context | Yes | The context object to inject (key-value pairs) | |
| sessionId | Yes | The session ID to inject context into |