Featherless icon

Featherless

Interact with Featherless API

Overview

This node integrates with the Featherless API to send chat messages to a specified language model. It allows users to interact with AI models by providing prompts and receiving generated responses. This is useful for automating conversational tasks, generating text completions, or building AI-powered assistants within n8n workflows.

Typical use cases include:

  • Creating chatbots that respond based on custom system prompts.
  • Generating text completions or answers from large language models.
  • Automating customer support or content generation using AI.

For example, you can configure the node to send a user message along with a system prompt that defines the assistant’s behavior, then receive and process the AI-generated reply.

Properties

Name Meaning
Model Name or ID The identifier of the AI model to use for generating chat completions. You can find available models at https://featherless.ai/models.
System Prompt A system-level message that sets the behavior or context of the assistant (e.g., "You are a helpful assistant..."). This helps guide the AI's responses.
Message The user message or prompt to send to the chat model. This is the main input text for which you want a response.
Temperature Sampling temperature controlling randomness in output generation. Higher values (e.g., 0.9) produce more diverse outputs; lower values make output more deterministic.
Additional Fields Optional advanced parameters to fine-tune the generation:
- Frequency Penalty: Penalizes new tokens based on their existing frequency (-2.0 to 2.0).
- Max Tokens: Maximum number of tokens to generate.
- Presence Penalty: Penalizes new tokens based on whether they appear in the text so far (-2.0 to 2.0).
- Top P: Nucleus sampling parameter (alternative to temperature).

Output

The node outputs an array of items where each item contains a json object with the following structure:

{
  "response": "string"
}
  • response: The trimmed text content generated by the Featherless AI model in reply to the input message.

No binary data is produced by this node.

Dependencies

  • Requires an active Featherless API key credential configured in n8n.
  • Makes HTTP POST requests to https://api.featherless.ai/v1/chat/completions.
  • The node expects the API key to be provided via credentials and uses it in the Authorization header as a Bearer token.

Troubleshooting

  • Missing or invalid API key: The node will throw an error if no valid API key is provided. Ensure your Featherless API key credential is correctly set up in n8n.
  • Invalid response format: If the API response does not contain the expected message content, the node throws an error indicating an invalid response format. This could happen if the API changes or if the request parameters are incorrect.
  • Network or API errors: Standard HTTP errors or timeouts may occur. Check network connectivity and API service status.
  • Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output.

Links and References

Discussion