Decide, Then Write
Part of the AI Decisions section of Coddy's AI Prompts journey. Lesson 18 of 22.
Decisions and chat replies work best together. First a decision picks the path, then your app runs the prompt for that path. The AI that writes the reply never has to work out what kind of message it is.
decision: team, wants
if wants == money_back: refund prompt
elif team == shipping: tracking prompt
else: general reply promptEach prompt can then be short and specific, with its own examples from Prompting Techniques, and the code, not the AI, decides which one runs.
Try it yourself
This lesson doesn't include a code challenge.
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in AI Decisions
1Let the AI Decide
From Reply to DecisionDescribe Your OptionsOptions That Don't OverlapLeave a Way OutReading the AnswerRecap: Let the AI Decide4Decisions in an App
Several Questions at OnceLet Code Do the MathDecide, Then WriteRecap: Decisions in an App