[Call Center] getSummary Test Suite¶
This workflow provides a testing interface for the getSummary functionality in a call center system. It accepts test queries via webhook, executes the main getSummary workflow, and returns structured test results including the generated summary and metadata.
Purpose¶
No business context provided yet — add a context.md to enrich this documentation.
How It Works¶
- Receive Test Request: A webhook receives POST requests containing test data including a query, test ID, and test name
- Extract Parameters: The workflow extracts the query text, test identifier, and test name from the incoming request
- Execute getSummary: Calls the main getSummary workflow (ID: lSfgvJsk9DCCp8sn) with the test query
- Format Results: Processes the response from getSummary and structures it with test metadata
- Return Response: Sends back a JSON response containing the test results, summary, and summary length
Workflow Diagram¶
graph TD
A[Test Webhook] --> B[Map Input]
B --> C[Call getSummary]
C --> D[Prepare Response]
D --> E[Respond to Webhook]
Trigger¶
Webhook Trigger: POST requests to the endpoint /test-get-summary-prod
Expected payload:
1 2 3 4 5 | |
Nodes Used¶
| Node Type | Node Name | Purpose |
|---|---|---|
| Webhook | Test Webhook | Receives POST requests with test data |
| Set | Map Input | Extracts query, testId, and testName from request body |
| Execute Workflow | Call getSummary | Invokes the main getSummary workflow |
| Code | Prepare Response | Formats the response with test metadata and summary |
| Respond to Webhook | Respond to Webhook | Returns structured test results |
External Services & Credentials Required¶
- getSummary Workflow: Requires access to workflow ID
lSfgvJsk9DCCp8sn - No external API credentials required for this test suite itself
Environment Variables¶
No environment variables are directly used in this workflow. Configuration depends on the called getSummary workflow.
Data Flow¶
Input:
1 2 3 4 5 | |
Output:
1 2 3 4 5 6 7 | |
Error Handling¶
- The Execute Workflow node is configured with
onError: continueRegularOutputto handle failures gracefully - If the getSummary workflow fails, the error message is captured and returned in the summary field
- Default fallback values are provided for missing input parameters
Known Limitations¶
- Depends on the availability and functionality of the getSummary workflow (ID: lSfgvJsk9DCCp8sn)
- No input validation on the webhook payload
- Error details from the called workflow may be limited
Related Workflows¶
- getSummary Workflow (ID: lSfgvJsk9DCCp8sn) - The main workflow being tested
Setup Instructions¶
-
Import Workflow: Import this workflow JSON into your n8n instance
-
Verify Dependencies: Ensure the getSummary workflow (ID: lSfgvJsk9DCCp8sn) exists and is accessible
-
Activate Webhook:
- Activate the workflow to enable the webhook endpoint
- Note the generated webhook URL for testing
-
Test the Endpoint:
1 2 3 4 5 6 7
curl -X POST [your-webhook-url] \ -H "Content-Type: application/json" \ -d '{ "query": "Sample text to summarize", "testId": 1, "testName": "Basic functionality test" }' -
Configure Permissions: Ensure the workflow has permission to execute the getSummary workflow (caller policy is set to "workflowsFromSameOwner")