Flow Companion by MivicleTo the main page

Workflow actions

Anthropic Claude: generate text

This Flow Companion action allows you to generate text using Anthropic's Claude AI models. The action can be used with any trigger.

Prerequisites

An Anthropic API key is required to use this action. You can get it from Anthropic Console.

Configuration

Basic Setup

  1. Navigate to Flow Companion app's main screen
  2. Click on Anthropic AI in the Settings section
  3. Enter your API key
  4. Set up completion parameters:
    • Name: an identifier for the parameter set.
    • Model: select the Claude model to use. Different models have varying capabilities and token limits. See models overview for details.
    • Temperature: controls the randomness of the output:
      • Lower values (closer to 0.0) - more focused and deterministic responses,
      • Higher values (closer to 1.0) - more creative and varied responses.
    • Max Tokens: maximum length of the generated response. The model may stop before reaching this limit. Check the models overview for model-specific limits.
    • System Prompt: provides context and instructions to Claude, helping define its role or specific goals. See guide to system prompts for best practices.
    • Suffix: additional text that will be automatically appended to the generated content.
    • Stop Sequences: Custom text sequences that will cause the model to stop generating.

Action Parameters

When configuring the action in your workflow, you can specify:

  • Prompt (required): enter a prompt to generate the text that you want. You can use workflow variables in your prompt using the {{variable}} syntax.
  • Completion Parameters: one of the parameter sets you created in the previous step. If not specified, the default parameter set will be used.

Output

The generated text is available as a variable that can be used in subsequent workflow steps.