Build Your First AI Agent · Lesson 3 of 10
Define the Inputs
Create an input contract with a clear missing-information response, using ChatGPT as your building partner while you make and verify the final decisions.
What You’re Building
Create an input contract with a clear missing-information response.
Time: 9 minutes. Keep your work in one document so each module builds on the last.
Why It Matters
Consistent inputs make repeated work easier to compare. The agent should know the difference between essential source material, optional preferences and information it should never need.
Build It
Open a fresh ChatGPT chat for this module. Copy the ChatGPT Coach Prompt below, replace every bracketed field with your saved work, and send it. Answer one question at a time. Ask ChatGPT to explain unfamiliar words, but keep the final decisions and checks yourself. Save the useful result in your working document.
- List the minimum fields necessary for your job. Mark each Required or Optional.
- Describe the expected form of each field: plain text, labeled notes or a small table.
- Write a missing-information rule. If essential information is absent, ask a focused question and wait. If an optional field is absent, use only a declared safe default.
- Add a rule for conflicting information: surface the conflict rather than silently resolving it.
- Keep passwords, payment details and unnecessary personal data out of your inputs.
Success looks like this: you saved the requested artifact, can explain it in plain language, and checked it against this lesson’s Test It section. If that is not true yet, do not mark the checkpoint complete.
ChatGPT Coach Prompt
Act as my ChatGPT building partner. My agent job and boundaries are: [PASTE]. Ask me what information the agent needs before it can work. Separate required fields, optional context, defaults, and sensitive information to omit. Then draft a blank input template and show one synthetic example for me to check.
Agent Inputs Template
INPUT CONTRACT Field | Required/Optional | Expected form | If missing [Field] | [Required] | [Form] | [Ask and wait] [Field] | [Optional] | [Form] | [Declared default or omit] TASK INPUT Task context: <source> [Paste the source for this run.] </source> Requested audience/purpose: Optional preferences: MISSING INFORMATION RULE If essential input is absent, list the missing fields, ask the minimum necessary questions and wait. Do not fill them with guesses. Flag conflicting source facts for human clarification.
Example
Content Scripting Helper requires a topic, intended audience and source facts approved for use. A tone preference is optional; its declared default is plain, helpful language. With a topic but no source facts, it should request them rather than invent statistics. A target length can be optional with an explicit short-draft default.
Test It
Fill your input template once. Remove an essential field and predict the question the agent should ask. Remove an optional field and identify the allowed default. Save both variants for the five-test suite.
Troubleshooting
If every field is required, check whether some are preferences. If a default could materially change the facts, do not use it. Long documents can distract a small worker: provide the relevant excerpt and preserve enough context to interpret it correctly. If ChatGPT gives too much at once, reply: ‘Stop. Ask me one question at a time and wait for my answer.’ If it assumes facts, point to the unsupported sentence and ask which supplied evidence supports it. Start a fresh chat with the saved prompt and context when the conversation becomes confused.