Several Questions at Once
Part of the AI Decisions section of Coddy's AI Prompts journey. Lesson 16 of 22.
Apps usually need more than one fact about the same text. Put several questions in one decision. Each has its own id, its own type and its own answer.
A festival reads sign-up emails with a choice ticket and a yes or no veggie. For Two weekend tickets please, and we're both vegetarian.:
ticket
day ░░░░░░░░░░░░░░░░░░░░ 0%
weekend ████████████████████ 100%
veggie
yes ████████████████████ 100%
no ░░░░░░░░░░░░░░░░░░░░ 0%The app books two weekend tickets and orders vegetarian meals, all from one decision. Mix choices, yes or no questions and scores freely: each question is answered on its own.
Challenge
MediumThe support router already picks a team. Finance also wants to know which messages ask for money back.
Add a choice question wants with the options money_back, information and a_fix, each with a description, so the router answers both.
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