Final String Widget Demo Workflow
This shows how to set up a workflow to test the final_string widget functionality:
βββββββββββββββ βββββββββββββββββββββββββββ βββββββββββββββ
β Load Image β β Gemini Image Describe β β Show Text β
β ββββββΆβ ββββββΆβ β
β [Load your β β - API Key: [your key] β β Displays β
β test image]β β - Model: gemini-2.5- β β final β
β β β flash β β generated β
βββββββββββββββ β - System Prompt: [...] β β prompt β
β - User Prompt: [...] β βββββββββββββββ
β β
β βββββββββββββββββββββββ β
β β final_string widget β β β This widget will
β β (will auto-update) β β populate after
β βββββββββββββββββββββββ β execution!
βββββββββββββββββββββββββββ
Step-by-step Instructions:
Import the workflow:
- Copy the contents of
example_workflow.json - In ComfyUI, go to "Load" β "Load (from file)" or drag the JSON file
- Copy the contents of
Set up the nodes:
- Load Image: Choose any test image
- Gemini Image Describe: Enter your valid Gemini API key
- Show Text: This will display the final output
Execute the workflow:
- Click "Queue Prompt" to run the workflow
- Wait for the Gemini API to process the image
Check the results:
- The
final_stringwidget on the Gemini node should populate with generated text - The Show Text node should display the same text
- Browser console should show "Updated final_string widget with:" message
- The
What was fixed:
- β Before: final_string widget showed placeholder text
- β After: final_string widget shows actual generated description
The widget update happens automatically when the node execution completes!