This document explains the Ask AI node, which lets you interact with AI models to process text and generate responses.

Node Inputs

Required Fields

  • Prompt: Main instruction or question for the AI. It should be clear and detailed to guide the AI to give you the best possible answer.

Optional Fields

  • Context: Additional information to help AI effectively respond to the query in the prompt. Context can be referenced in the prompt.

More Options

  • Prompt Template: Structure for combining prompt parts
  • Choose AI Model: Select the AI model you want to use
  • Temperature: Controls response creativity (0-1)
    • 0: More focused, consistent
    • 1: More creative, varied
  • Maximum Tokens: Limits response length
  • Cache Response: Save responses for reuse

Show As Input Options

You can expose these fields as inputs to the node:

  • Prompt
  • Context
  • Prompt Template
  • Temperature
  • Maximum Tokens

Node Output

  • Response: AI’s generated answer or output

Node Functionality

The Ask AI node connects to various AI models to:

  • Generate text responses
  • Process/analyze content
  • Answer questions
  • Summarize information
  • Convert data formats

Available AI Models

  • Claude 3.5 Sonnet
  • Claude 3 Haiku
  • OpenAI o1
  • OpenAI o1 mini
  • GPT-4o
  • GPT-4o Mini
  • Gemini 1.5 Pro/Flash
  • And more

Common Use Cases

  1. Content Creation:
Prompt: "Write a blog post about {topic}"
Context: Key points and style guide
  1. Data Analysis:
Prompt: "Analyze these sales figures"
Context: Monthly sales data
  1. Customer Support:
Prompt: "Answer this customer question professionally"
Context: Customer query and company policies

Loop Mode Pattern

  1. Batch Processing:
    Input: List of articles
    Prompt: "Analyze and find key patterns in this article:"
    Context: {current_article}
    Result: Analysis for each article
    

Important Considerations

  1. Expert models like OpenAI o1 cost 30 credits, advanced models like GPT-4o & Claude 3.5 cost 20 credits and standard models cost 2 credits per run.
  2. You can drop the credit cost to 1 by providing your own API key under the credentials page
  3. The ‘Use Function’ option to force a structured output is only available for OpenAI models. More information here

In summary, the Ask AI node is your interface to AI models, helping you automate text processing and generation tasks with customizable control over the output style and format.