Write effective requests
Write clear requests to get better responses from
AI Assistant
. Refine the
requests through follow-up messages as the conversation continues.Request guidelines
Refer to these guidelines when writing a request:
- Describe what you want
- Before you send a request, identify:
- The outcome you want.
- The exact project scope, such as the controller, program, or routine you mean.
- The relevant element, controller, program, routine, and tag names.
- The behavior the result must have.
- Any constraints the result must meet.
- What a complete result looks like.
- TellAI Assistanthow to use a file
- Attaching a file is not the same as tellingAI Assistantwhat to do with it. When you attach a file, say how to use it: which content to read, what to extract, and where the result should go.
- State the rules that apply
- If your work follows specific standards, state them in your request. You can also capture recurring standards, soAI Assistantuses them as guide automatically.
- Know which mode your request needs
- AI Assistantproposes a mode change when your request needs one.
- Use Explore mode for questions, inspection, and focused changes.
- Use Plan mode to plan and validate a multi-step implementation.
- Use Build mode to execute a validated plan.
- Review and refine each response
- Read each response and check it against your requirements. If the result is not what you need, tellAI Assistantspecifically what to change.
Request examples
Compare these weak requests with stronger versions that name the scope, elements, and
expected result.
Weak request | Better request | Why it is better |
|---|---|---|
Make pump logic. | In the ConveyorControl program, add a routine named PumpStart that starts Pump1
when the Start push button is on and the tank level is below the high setpoint, and
stops Pump1 when the Stop push button is on. | Names the program, routine, elements, and required behavior. |
Use this file. | Use the attached I/O list to create a controller tag for each row. Use the
Tag Name column for the tag name and the Data
Type column for the data type. List any rows where the data type is
not a supported Logix data type. | Tells AI Assistant how to use the file, where to put the
result, and what to flag. |
Fix the project. | In the Main routine of the Packaging program, resolve the verify error on the
count rung so the counter increments once per completed cycle. | Names the program, routine, and error, and states the expected result. |
Provide Feedback