Literal AI icon

Literal AI

Use the Literal AI API

Overview

This node integrates with the Literal AI API to perform various operations related to AI project management, including user handling, scoring, project and step management, file uploads, thread management, datasets, experiments, and prompts. Specifically, for the Step resource with the Send Steps operation, it sends an array of steps to the Literal AI service.

This is useful in scenarios where you want to programmatically submit multiple AI processing steps (e.g., generation or transformation steps) to the Literal AI platform for further processing, tracking, or analysis. For example, you might batch-send a series of text generation steps that your AI model produced, enabling centralized management and evaluation within the Literal AI ecosystem.

Properties

Name Meaning
Steps An array of step objects to send to the Literal AI API. Each step represents a unit of work or data to be processed or recorded by the service.

Output

The node outputs a JSON object under the content field containing the response from the Literal AI API after sending the steps. This typically includes confirmation details or metadata about the submitted steps.

If an error occurs during execution and "Continue On Fail" is enabled, the output will contain an error field with the error message.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authenticating with the Literal AI API.
  • The node uses the official @literalai/client library to interact with the API.
  • Proper configuration of the API key credential in n8n is necessary before using this node.

Troubleshooting

  • Common issues:
    • Invalid or missing API key credential will cause authentication failures.
    • Malformed JSON in the "Steps" property can cause parsing errors.
    • Network connectivity issues may prevent communication with the Literal AI API.
  • Error messages:
    • Errors returned from the API are captured and can be output if "Continue On Fail" is enabled.
    • Typical errors include authorization errors, invalid input format, or server-side errors.
  • Resolutions:
    • Ensure the API key is correctly set up and has appropriate permissions.
    • Validate the JSON structure of the steps array before sending.
    • Check network connectivity and API endpoint availability.

Links and References

Discussion