← Browse by Chapter
Get the Book →
#43Chapter 08 — Hybrid Workflows: Chat Designs, CLI Executes
Add to any chat-validated prompt:
```text
Output as a single valid JSON object with this schema:
{
"field1": "string",
"field2": "string",
"field3": "number or null",
"open_questions": ["string"]
}
No preamble, no trailing text. Output must be parseable by jq.
```
Then run the CLI with JSON output mode: `gemini --prompt "$(cat prompt.txt)" --file "$f" --format json`. `[VERIFY: confirm flag against gemini --help on the latest CLI release]`
Gemini for Business
These prompts are excerpts from the book. Get the full collection with explanations and use cases.