AI · 01 — Chat (ask a local model)
The simplest AI workflow: a question goes to a wired ◈ Model (local Ollama) and the answer lands in the Console. Change the question on the Inject node, or swap the model by editing the carrier — nothing is hidden inside the Chat node.
What’s inside
4 nodes — every type links to its full reference page.
| Step | Node | Type |
|---|---|---|
| Question | Inject | input.inject |
| Ask the model | AI Prompt | ai.prompt |
| Ollama (local) | AI Model | ai.model |
| Answer | Console | utility.console |
Import it
- Studio → Import — paste the JSON below (or the URL
/docs/templates/ai-01-chat-ask-a-local-model.json). - Or ask the AI Copilot with the JSON pasted after the phrase:
import this workflow json into a new workflow named "AI · 01 — Chat (ask a local model)" - Any credentials the nodes need are
${credential.…}references — add them once in Admin → Credentials and the template picks them up. Nothing secret ships in a template.
The workflow document (flowdrome.workflow.v1, 4 node types)
{
"schemaVersion": "flowdrome.workflow.v1",
"id": "",
"name": "AI · 01 — Chat (ask a local model)",
"version": "0",
"status": "draft",
"nodes": [
{
"id": "seed",
"type": "input.inject",
"label": "Question",
"category": "trigger",
"config": {
"contentType": "application/json",
"payload": {
"question": "In one sentence: why do rivers meander?"
}
},
"position": {
"x": 0,
"y": 0
}
},
{
"id": "ask",
"type": "ai.prompt",
"label": "Ask the model",
"category": "ai",
"config": {
"provider": "ollama",
"baseUrl": "",
"apiKey": "",
"model": "qwen2.5:1.5b",
"systemPrompt": "Answer in one short, clear sentence.",
"promptMode": "field",
"promptField": "question",
"temperature": "0.2",
"maxTokens": 200,
"jsonMode": false,
"timeoutMs": 120000
},
"position": {
"x": 530,
"y": 0
},
"attachments": {
"model": "llm"
}
},
{
"id": "llm",
"type": "ai.model",
"label": "Ollama (local)",
"category": "ai",
"config": {
"provider": "ollama",
"baseUrl": "",
"apiKey": "",
"model": "qwen2.5:1.5b",
"models": [],
"temperature": 0.2,
"maxTokens": 512
},
"position": {
"x": 530,
"y": 222
}
},
{
"id": "out",
"type": "utility.console",
"label": "Answer",
"category": "utility",
"config": {
"message": "{{ $json.reply }}"
},
"position": {
"x": 1060,
"y": 0
}
}
],
"edges": [
{
"id": "e0",
"sourceNodeId": "seed",
"sourcePort": "output",
"targetNodeId": "ask",
"targetPort": "input"
},
{
"id": "e1",
"sourceNodeId": "ask",
"sourcePort": "output",
"targetNodeId": "out",
"targetPort": "input"
}
],
"triggers": [
{
"id": "t0",
"nodeId": "seed"
}
],
"meta": {
"snippets": [],
"source": "template-gallery",
"description": "The simplest AI workflow: a question goes to a wired ◈ Model (local Ollama) and the answer lands in the Console. Change the question on the Inject node, or swap the model by editing the carrier — nothing is hidden inside the Chat node."
}
} Generated from the verified demo corpus — this exact document seeds and runs on a fresh Flowdrome. Raw JSON: ai-01-chat-ask-a-local-model.json.