Actions41
- Step/Generation Actions
- Thread Actions
- User Actions
- Dataset Actions
- Experiment Actions
- File Actions
- Prompt Actions
- Score Actions
Overview
This node integrates with the Literal AI API to manage and retrieve data related to various resources, including threads. Specifically, for the "Thread" resource with the "Get Many" operation, it fetches multiple thread records from the Literal AI service. This is useful when you want to list or process several conversation threads at once, such as displaying recent discussions, analyzing multiple chat sessions, or batch processing thread metadata.
Practical examples:
- Retrieving the latest 50 conversation threads to display in a dashboard.
- Fetching multiple threads to analyze participant activity or tags.
- Exporting thread data for reporting or archival purposes.
Properties
| Name | Meaning |
|---|---|
| Return Item Count | Max number of thread results to return (minimum 1). Default is 50. |
Output
The node outputs an array of items where each item contains a json object with a single property:
content: This holds the response from the Literal AI API for the requested threads. It typically includes an array of thread objects with their details such as IDs, names, participants, metadata, and tags.
No binary data output is produced by this operation.
Example output structure (simplified):
{
"content": [
{
"id": "thread_123",
"name": "Support Chat",
"participantId": "user_456",
"metadata": {...},
"tags": ["support", "priority"]
},
...
]
}
Dependencies
- Requires an API key credential for the Literal AI API to authenticate requests.
- The node uses the official Literal AI client library (
@literalai/client) bundled within. - No additional environment variables are needed beyond the configured API key credential.
Troubleshooting
Common issues:
- Invalid or missing API key will cause authentication failures.
- Requesting too many threads (exceeding API limits) may result in errors or truncated results.
- Malformed input parameters (e.g., non-numeric limit) can cause parameter validation errors.
Error messages:
"Authentication failed": Check that the API key credential is correctly set and valid."Invalid parameter": Verify that the "Return Item Count" is a positive integer.- Network or timeout errors: Ensure network connectivity and Literal AI service availability.
To handle errors gracefully, enable the node's "Continue On Fail" option to capture error messages in the output instead of stopping execution.
Links and References
- Literal AI API Documentation: https://docs.literal.ai/api
- Literal AI Client Library: https://www.npmjs.com/package/@literalai/client
- n8n Documentation on Credentials: https://docs.n8n.io/credentials/overview/