{"id":"code-work-sb-booking-automation-steps","audience":"small-business","category":"coding","track":"coding","technique":"format","title":"Plan a booking automation as short pseudo-code steps","free":false,"task":"Write the automation for new grooming bookings as pseudo-code: one code block of at most 6 numbered lines, each shaped App: Action - fields. Before anything is created, a filter must stop it unless Deposit paid is Yes and Zip is 97211 or 97217, the only areas the van covers. Rosa and Deb now read the van calendar on their phones, so there's no Slack post anymore, and the form already texts clients, so no email or text to the customer. Under 25 words outside the code.","materialLabel":"Booking form fields and tools (attached to your prompt automatically)","material":"PAWS & SUDS MOBILE GROOMING - booking setup\n\nBooking form (Formly) fields, exactly as named:\n- Owner name\n- Phone\n- Dog name\n- Breed size (Small / Medium / Large)\n- Address\n- Zip\n- Preferred date\n- Deposit paid (Yes / No)\n\nTools we use:\n- Formly (booking form, sends the customer a confirmation text automatically)\n- Google Calendar (\"Van schedule\" calendar)\n- Google Sheets (\"Client log\" sheet)\n- Slack (#van channel)\n\nWhat happens by hand today:\n- Rosa checks the deposit, adds the appointment to the van calendar, adds a row to the client log and posts in #van.\n- Large dogs need a 2-hour slot, others 1 hour.\n- About 15 bookings a week, more before holidays.","rules":[{"type":"codeBlocks","count":1},{"type":"maxCodeLines","max":6},{"type":"maxProseWords","max":25}],"mistakes":[{"title":"Not giving the full filter","why":"The AI checks the deposit but books dogs outside the van's area.","fix":"Add: \"Filter first: Deposit paid is Yes and Zip is 97211 or 97217.\"","checks":["r0"]},{"title":"Not giving the line shape","why":"The AI writes paragraphs or arrows that you can't copy into the tool.","fix":"Add: \"Each line App: Action - fields, using the form's exact field names.\"","checks":["r1","maxCodeLines"]},{"title":"Forgetting what changed","why":"The AI copies today's routine, Slack post included, and adds a customer email.","fix":"Add: \"No Slack step and no email or text to the customer.\"","checks":["r2"]},{"title":"Getting a menu of options","why":"The AI likes to offer two or three versions of the plan, so you're left to pick and test them yourself.","fix":"Add: \"Give one plan only, in one code block, no alternatives.\"","checks":["codeBlocks"]},{"title":"Getting a tutorial","why":"By default the AI explains every part of the code at length, which you then have to scroll past.","fix":"Add: \"After the code, one line under 10 words. Nothing else.\"","checks":["maxProseWords"]}],"promptHints":[{"label":"Gives the full filter","patterns":["972\\d\\d","zip","deposit"]},{"label":"Gives the line shape","patterns":["app: action","app:","numbered"]},{"label":"Drops the old steps","patterns":["no slack","no (email|text|sms)","already texts"]},{"label":"Caps the steps","patterns":["\\d+ (lines|steps)","at most"]},{"label":"Asks for one answer only","patterns":["\\b(one|single|1)\\s+(plan|code block|code block|block|version)","only one","no (alternatives|options|other versions)"]}],"hint":"The AI will copy today's routine. Tell it what changed, which areas the van covers, and the exact shape of each step line.","rubricLabels":["A filter step that continues only when Deposit paid is Yes and Zip is 97211 or 97217 comes before any step that creates a calendar event or sheet row","Each step line is shaped App: Action - fields and uses the form's field names as written (such as Owner name, Dog name, Preferred date)","Has no Slack step and no step that emails or texts the customer"]}