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 various resources including threads. Specifically, for the Thread - Delete operation, it deletes a thread identified by its unique Thread ID. This is useful in scenarios where you want to programmatically remove conversation threads or data groupings from your Literal AI workspace, such as cleaning up obsolete or irrelevant threads.
Practical examples:
- Automatically deleting threads after a project phase completes.
- Removing test or temporary threads created during development.
- Managing thread lifecycle based on external triggers or workflows.
Properties
| Name | Meaning |
|---|---|
| Thread ID | The unique identifier of the thread to delete. |
Output
The output JSON contains a single field content which holds the response from the Literal AI API after attempting to delete the thread. This typically includes confirmation of deletion or relevant status information.
Example output structure:
{
"content": {
// API response confirming deletion or error details
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for the Literal AI API.
- The node uses the official Literal AI client library (
@literalai/client) to interact with the API. - Proper configuration of the API key credential in n8n is necessary for authentication.
Troubleshooting
Common issues:
- Invalid or missing Thread ID: Ensure the Thread ID provided exists and is correctly formatted.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
- Network or API downtime: Check connectivity and Literal AI service status.
Error messages:
- Errors returned from the API will be included in the node output if "Continue On Fail" is enabled.
- Typical errors include "Thread not found" or "Unauthorized access," which indicate either a wrong Thread ID or invalid credentials.
To resolve errors:
- Double-check the Thread ID input.
- Confirm API key validity and permissions.
- Enable "Continue On Fail" to handle errors gracefully within workflows.
Links and References
- Literal AI API Documentation (hypothetical link)
- Literal AI Client Library on npm