AI
AI integration · 10 node(s).
00Overview
Every field below is exactly what you see in the Flomation editor. Fields marked ● live picker let you choose from a list pulled live from your account — no IDs to look up.
01Connecting AI
Add your credentials as a Flomation environment secret, then pick them in each node. The connection fields are:
| Field | Type | Details | |
|---|---|---|---|
| API Key | secret | Required | sk-ant-... |
| Model | secret | Claude Sonnet 4.6, Claude Haiku 4.5, Claude Opus 4.6 |
${secrets.your_secret}.02Anthropic
Anthropic Prompt
ai/anthropic · Action
Send a prompt to the Anthropic Messages API and return the response
| Field | Type | Details | |
|---|---|---|---|
| API Key | secret | Required | sk-ant-... |
| Model | secret | choices: Claude Sonnet 4.6, Claude Haiku 4.5, Claude Opus 4.6 | |
| System Prompt | text | You are a helpful assistant. | |
| Prompt | text | Required | What would you like to ask? |
| Max Tokens | integer | 2048 | |
| Temperature | string | 0.7 | |
| Conversation History | object | ${conversation_history} | |
| Streaming (fires response per sentence for low-latency voice) | boolean | ||
| Tool Definitions (JSON) | text | [{"name":"web_search","description":"Search the web","input_schema":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}] |
Returns: response, response_mode, should_respond, model, input_tokens, output_tokens, stop_reason, tool_calls_count, success, error
03Gemini
Gemini Prompt
ai/gemini · Action
Send a prompt to Google's Gemini API and return the response
| Field | Type | Details | |
|---|---|---|---|
| API Key | secret | Required | AIza... |
| Model | secret | choices: Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini 2.5 Flash Lite, Gemini 2.0 Flash, Gemini 2.0 Flash Lite | |
| System Prompt | text | You are a helpful assistant. | |
| Prompt | text | Required | What would you like to ask? |
| Max Tokens | integer | 8192 | |
| Temperature | string | 0.7 | |
| Conversation History | object | ${conversation_history} | |
| Tool Definitions (JSON) | text | [{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}] |
Returns: response, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error
Gemini Image
ai/gemini_image · Action
Generate an image from a text prompt using Gemini 2.5 Flash Image
| Field | Type | Details | |
|---|---|---|---|
| API Key | secret | Required | AIza... |
| Model | secret | choices: Gemini 2.5 Flash Image (Nano Banana), Gemini 2.0 Flash Preview Image Generation | |
| Prompt | text | Required | A photorealistic image of a cat wearing a top hat, studio lighting. |
Returns: tool_result, image_blob, image_base64, mime_type, model, success, error
Gemini Text-to-Speech
ai/gemini_tts · Action
Generate audio from a text prompt using Gemini's TTS preview
| Field | Type | Details | |
|---|---|---|---|
| API Key | secret | Required | AIza... |
| Model | secret | choices: Gemini 2.5 Flash Preview TTS, Gemini 2.5 Pro Preview TTS | |
| Text | text | Required | Say cheerfully: hello, world! |
| Voice | secret | choices: Kore (firm, default), Puck (upbeat), Charon (informative), Fenrir (excitable), Aoede (breezy), Leda (youthful), Orus (firm, deeper), Zephyr (bright) |
Returns: tool_result, audio_blob, audio_base64, mime_type, voice, model, success, error
Gemini Video
ai/gemini_video · Action
Generate a short video clip from a text prompt using Google's Veo 2 or Veo 3
| Field | Type | Details | |
|---|---|---|---|
| API Key | secret | Required | AIza... |
| Model | secret | choices: Veo 3.1 Fast (preview, with audio, cheapest), Veo 3.1 (preview, with audio, best quality), Veo 3.1 Lite (preview, with audio, lowest cost), Veo 2 (legacy, video only) | |
| Prompt | text | Required | Photorealistic flythrough over snowy Welsh mountains at golden hour, drone footage. |
| Input Image (flo:blob token, optional — enables image-to-video) | text | flo:blob:abc... | |
| Aspect ratio for the generated video. Set to '9:16' for portrait/vertical videos (TikTok, Instagram Reels, Instagram Stories, YouTube Shorts, mobile-first viewing). Set to '16:9' for landscape/horizontal (default, YouTube, cinematic). Veo does NOT support square (1:1). If the user mentions a vertical format, mobile-first, social shorts, or any portrait orientation, set this to '9:16'. | text | choices: 16:9 (landscape), 9:16 (portrait — TikTok / Reels / Stories) | |
| Duration (seconds, 5–8 — model-dependent) | integer | 8 | |
| Negative Prompt (things to avoid, optional) | text | blurry, low quality | |
| Whether the generated video may include people. Set to 'allow_all' for any people (children + adults — Veo 2 only, downgraded to 'allow_adult' on Veo 3.1 in EU/UK/CH/MENA). Set to 'allow_adult' to allow adults only (the safest universal choice; works on every model and region). Set to 'dont_allow' to exclude people entirely (use for scenery, products, abstract motion). If the user mentions people, characters, faces, or human subjects in the prompt and doesn't object to people, set this to 'allow_adult'. | text | choices: Allow adults (default — works on every model and region), Allow all (Veo 2 only outside EU/UK; downgrades on Veo 3.1 in EU/UK), Don't allow people (scenery / products / abstract) | |
| Seed (optional, for reproducibility) | integer | 12345 |
Returns: tool_result, video_blob, video_base64, mime_type, model, operation_name, success, error
04Groq
Groq Prompt
ai/groq · Action
Send a prompt to the Groq Chat Completions API and return the response
| Field | Type | Details | |
|---|---|---|---|
| API Key | secret | Required | gsk_... |
| Model | string | llama-3.3-70b-versatile — choices: Llama 3.3 70B Versatile, Llama 3.1 8B Instant, Llama 4 Scout 17B, GPT-OSS 120B, GPT-OSS 20B, Qwen 3 32B, Groq Compound, Groq Compound Mini | |
| System Prompt | text | You are a helpful assistant. | |
| Prompt | text | Required | What would you like to ask? |
| Max Tokens | integer | 2048 | |
| Temperature | string | 0.7 | |
| Conversation History | object | ${conversation_history} | |
| Tool Definitions (JSON) | text | [{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}] |
Returns: response, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error
05Ollama
Ollama Prompt
ai/ollama · Action
Send a prompt to a model running on your own Ollama server and return the response
| Field | Type | Details | |
|---|---|---|---|
| Ollama Server URL | string | Required | http://localhost:11434 |
| API Key | secret | Only needed behind an authenticated proxy | |
| Model | string | Required · ● live picker | llama3.2 — choices: Llama 3.2, Llama 3.1 8B, Qwen 3, Gemma 3, Mistral, Phi-4, DeepSeek-R1, Qwen 2.5 Coder, Llama 3.2 Vision, LLaVA (Vision) |
| System Prompt | text | You are a helpful assistant. | |
| Prompt | text | Required | What would you like to ask? |
| Conversation History | object | ${conversation_history} | |
| Max Tokens | integer | 1024 (-1 = unlimited) | |
| Temperature | string | 0.8 | |
| Response Format | string | choices: Text, JSON | |
| Thinking | string | choices: Model Default, On, Off, On (Low Effort), On (Medium Effort), On (High Effort) | |
| Advanced Options | string | choices: Hide, Show | |
| Top P | string | 0.9 | |
| Top K | integer | 40 | |
| Min P | string | 0.0 | |
| Seed | integer | Set for reproducible output | |
| Stop Sequences | string | Comma-separated, e.g. ###,END | |
| Keep Alive | string | 5m | |
| Context Length | integer | 4096 | |
| Repetition Penalty | string | 1.1 (1.0 = off) | |
| Repeat Window | integer | 64 (0 = off, -1 = context length) | |
| Frequency Penalty | string | 0.0 | |
| Presence Penalty | string | 0.0 | |
| Prompt Batch Size | integer | 512 | |
| GPU Layers | integer | -1 (auto) | |
| Main GPU | integer | 0 | |
| CPU Threads | integer | 0 (auto) | |
| Low VRAM Mode | boolean | ||
| Lock Model in RAM (mlock) | boolean | ||
| Memory-Map Model (mmap) | boolean | ||
| Penalize Newlines | boolean | ||
| Tool Definitions (JSON) | text | [{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}] |
Returns: response, thinking, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error
06Openai
OpenAI Prompt
ai/openai · Action
Send a prompt to the OpenAI Chat Completions API and return the response
| Field | Type | Details | |
|---|---|---|---|
| API Key | secret | Required | sk-... |
| Model | secret | choices: GPT-4o, GPT-4o Mini, GPT-4.1, GPT-4.1 Mini, GPT-4.1 Nano, o3, o3 Mini, o4 Mini | |
| System Prompt | text | You are a helpful assistant. | |
| Prompt | text | Required | What would you like to ask? |
| Max Tokens | integer | 2048 | |
| Temperature | string | 0.7 | |
| Conversation History | object | ${conversation_history} | |
| Tool Definitions (JSON) | text | [{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}] |
Returns: response, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error
07Openrouter
OpenRouter Prompt
ai/openrouter · Action
Send a prompt to any AI model through the OpenRouter unified API and return the response
| Field | Type | Details | |
|---|---|---|---|
| API Key | secret | Required | sk-or-v1-... |
| Model | string | ● live picker | openai/gpt-5.4-mini — choices: OpenAI GPT-5.4, OpenAI GPT-5.4 Mini, Anthropic Claude Sonnet 5, Anthropic Claude Opus 4.8, Anthropic Claude Haiku 4.5, Google Gemini 3.1 Pro Preview, Google Gemini 2.5 Flash, Meta Llama 4 Maverick, DeepSeek V3.2, Qwen3 Max, Mistral Large 2512, GPT-OSS 20B (Free) |
| System Prompt | text | You are a helpful assistant. | |
| Prompt | text | Required | What would you like to ask? |
| Max Tokens | integer | 2048 | |
| Temperature | string | 0.7 | |
| Top P | string | 1.0 | |
| Frequency Penalty | string | 0.0 (-2.0 to 2.0) | |
| Presence Penalty | string | 0.0 (-2.0 to 2.0) | |
| Response Format | string | choices: Text, JSON | |
| Conversation History | object | ${conversation_history} | |
| Tool Definitions (JSON) | text | [{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}] |
Returns: response, model, provider, prompt_tokens, completion_tokens, total_tokens, cost, should_respond, tool_calls_count, success, error
08Openwebui
Open WebUI Prompt
ai/openwebui · Action
Send a prompt to an Open WebUI (or any OpenAI-compatible) Chat Completions endpoint and return the response
| Field | Type | Details | |
|---|---|---|---|
| Endpoint | string | Required | https://openwebui.example.com |
| API Key | secret | Required | sk-... |
| Model | string | Required | llama3.1:8b |
| System Prompt | text | You are a helpful assistant. | |
| Prompt | text | Required | What would you like to ask? |
| Max Tokens | integer | 2048 | |
| Temperature | string | 0.7 | |
| Conversation History | object | ${conversation_history} | |
| Tool Definitions (JSON) | text | [{"type":"function","function":{"name":"web_search","description":"Search the web","parameters":{"type":"object","properties":{"query":{"type":"string"}},"required":["query"]}}}] |
Returns: response, model, prompt_tokens, completion_tokens, total_tokens, should_respond, tool_calls_count, success, error
09Notes & Limitations
Behaviours and constraints worth knowing before you build with these nodes.
- The Ollama and Open WebUI actions send prompts to a server you host yourself, so that server must be running and reachable from Flomation before the step will succeed.
- Language-model responses are non-deterministic, so the same prompt can return differently worded results on each run — avoid building later steps that depend on an exact-match output.
- Gemini's image, speech and video generators run on preview models (Gemini 2.5 Flash Image, TTS preview, and Veo 2/3), which the provider may change, rename or withdraw at short notice.
- Video generation with Veo produces only a short clip and typically takes noticeably longer to return than a text prompt, so allow extra time in flows that wait on its output.
- Each provider requires its own credentials, and a key issued for one service will not authenticate against another.