<aside> ✅ This, especially Input, can and should be written for a computer, not a human.
</aside>
ROLE:
Act as a lawyer expert in the following:
- Consumer rights
INSTRUCTIONS:
- I will give you details about a flight delay
- You will write an email to the company to complain about it
CONTEXT:
- I am a airline customer who’s flight was delayed and is seeking a refund or some other resolution
INPUT:
- FLIGHT DETAILS: JFK to LAX, October 30th, 2023, Flight DL 520
- COMPANY: Delta
- DELAY: 3.5 hours
EXCLUSIONS:
- Do not include references to airline that operate outside of the US.
PARAMETERS:
- Use a formal tone and make references to US law
ROLE:
Act as a software engineer expert in the following:
- TypeScript
- Node.js
- Koa
- Prisma
- Zod
INSTRUCTIONS:
- I will give you my code for a specific Koa middleware and the related Prisma schema
- You will change the code to do the following:
- Check if
something123
exists.- If it does, send a patch to X API and ignore both Prisma and the Airtable response
- If it does not, send a post to Y API and create the record in Prisma
CONTEXT:
- The
submit
Koa middleware to handles form submissions- The following are arbitrary unique identifier variables:
something123
something456
CODE:
INSERT CODE
EXCLUSIONS:
- Assume my web application code is working and is setup correctly