Your First Workflow
A hands-on tutorial: create a text generation workflow with Gemini and run it.
What we'll build
A simple 2-node workflow: a TextInput feeds a prompt to Gemini, which generates a response.
TextInput ("Write a tagline for...") ──prompt──▶ Gemini ──response──▶ [artifact]Step 1: Create the workflow
- From your dashboard, click New Workflow
- Give it a name (e.g., “My First Workflow”)
- You're now in the visual editor — an empty canvas
Step 2: Add a TextInput node
- Click the + button in the toolbar
- Select Text Input from the Input category
- Click the node to open its config panel
- Type your prompt:
Write a catchy tagline for a coffee brand called “MoonBrew”
Step 3: Add a Gemini node
- Click + again
- Select Gemini from the AI Text category
- Position it to the right of TextInput
- Default model is
gemini-2.5-flash— leave it as is
Step 4: Connect them
- Drag from the text output port of TextInput
- Drop onto the prompt input port of Gemini
- A cable appears — the connection is live
Typed ports: You can only connect compatible types. Text → Text works. Image → Text would be blocked by the editor.
Step 5: Execute
- Click the Execute button (top-right)
- TextInput turns green instantly (it just outputs your text)
- Gemini turns blue (processing) then green (done)
- Click the Gemini node to see the generated tagline
What just happened
Behind the scenes:
- Zephly validated your DAG (no cycles, all ports connected)
- Checked your credit balance (Gemini costs 1-2 credits)
- Executed TextInput → passed its output to Gemini's prompt
- Called the Gemini API with your text
- Stored the response as an artifact
- Sent WebSocket events to update the UI in real-time
Next: make it more interesting
Try adding more nodes:
- Add a NanoBanana node → connect Gemini's response to its prompt → generate an image from the tagline
- Add an ElevenLabs node → generate a voiceover of the tagline
- Add an Instagram node → publish the image directly
Related
Last updated: 2026-03-27