Actions17
Context → GetContext
AI-generatedSummary
Retrieve the current conversation context, optionally including previous node input, contact information, and stored run action metadata.
Inputs
- addPrevNodeToContext — If true, includes the previous node's input in the context response. Defaults to false.
- nodeNamePrevNodeGet — Name of the previous node to reference when addPrevNodeToContext is enabled. Optional; logged but not used to fetch specific node output.
Output shape
array[1]
Each item is a JSON object. If a conversation exists in memory, the response includes context (from conversation.getContext()), prevInput (the workflow's input data, included when addPrevNodeToContext is true), contact (if set via the Contact operation), and runAction (if stored in execution memory). If no conversation is found, returns { context: {} }.
Examples
Example 1: Basic context retrieval
Leave both parameters at defaults. The operation reads the active conversation's context and returns it unchanged.
Example 2: Include previous node input
Set addPrevNodeToContext to true and nodeNamePrevNodeGet to a valid node name. The response includes prevInput set to the current node's input data (the source logs the name but does not filter by it).