Use the AI Agent to plan and build a project
To plan and build a project using the AI Agent, open an
AI Agent
Session
from the AI Agent Explorer
. Use the
AI Agent Session
to:- Upload files that contain design artifacts for the AI Agent to reference when creating your project plan. Files can include content such as specifications, diagrams, Logix Designer .L5X files, and spreadsheets.
- Prompt the AI Agent to use uploaded files to create your project plan. For example, add a controller or routines from an .L5X file.
- Prompt the AI Agent to build your project based on the plan.
To use the AI Agent to plan and build a project
- In the explorer bar, selectAI Agent Explorer, and then at the top ofAI Agent Explorer, selectAI Agent Session.TIP:When planning your project,Session in Progress (Plan)
appears in
AI Agent Session. - To upload files:
- At the bottom ofAI Agent SessioninAsk AI Agent, selectUpload files.
- InUpload files for AI Agent, drag and drop files or selectBrowseto select files on your computer.TIP:You can upload .md, .L5X, .pdf, .jpg, .jpeg, .png, .gif,. txt, .xls, .xlsx, .csv, .doc, and .docx file types. When the file type is ready to upload,
appears next to the file. If you decide not to include a displayed file into your plan, after the file, select
Remove file. - SelectUpload.
- To open an uploaded file:
- InAI Agent Explorer, expandFiles, and then double-click a file from either subfolder:
- User-uploaded files. Files that you have uploaded. User-uploaded files are preceded by
.
- AI Agent-generated files. Files that the AI Agent created. AI Agent-generated files are preceded by
.
TIP:InAI Agent-generated files, the AI Agent creates and maintains a project .md file that serves as the project overview. This file is automatically updated as changes are made, summarizing project content such as controller information, devices, Add-On Instructions, tasks, programs and routines, data types, and parameter connections.
- Double-click the file to open.TIP:You can preview .md, .csv, and .txt files. You cannot open .L5X files. Open the AI Agent-generated markdown summary fromAI Agent-generated filesinAI Agent Explorer. For markdown files, selectPreviewto view the rendered content or selectEditorto view the markdown source.Read-only files displayRead-only.
- To modify a file:
- Open the file and selectDownloadto save the file locally.
- Make the required changes to the downloaded file.
- Upload the modified file again.
- Prompt the AI Agent to perform tasks using the content available in any of the uploaded files:
- InAI Agentat the bottom of the planning session, enter a prompt. For example, using the full name of an uploaded .l5x file, prompt the AI Agent to summarize the included content such as Add-On Instructions, parameters, routines, and functional descriptions.TIP:Frequently used prompts include:
- Summarize the contents of<name of file>.
- Create a detailed list of routines in<name of file>.
- Create sequence diagrams for<name of file>.
- Create flow diagrams for<name of file>.
- Create a plan based on the uploaded specification.
- PressEnteror selectSend.TIP:The AI Agent works best through conversation. After each response, review the output and provide follow-up prompts to clarify, correct, or expand on the results. The AI Agent can make mistakes, so refining your plan through multiple exchanges improves the quality of the final build. Providing more detail improves the results.Tips for better results: Be specific. Include names, parameters, and behavior details in your prompts. For example,Create a pump Smart Object named PMP001 with start/stop logicproduces better results thanMake a pump. If the first result is not right, tell the AI Agent what was wrong and ask it to try again. Always review generated code before accepting. The AI Agent is a productivity tool, not a substitute for engineering judgment.TIP:
appears before each user prompt and
indicator appears before each AI Agent response.
The AI Agent may present the requested information or ask for
additional clarification. When the AI Agent completes a task, quick
prompts for common actions may appear above the AI Agent input
line.TIP:To clear a prompt and its response from your session history, selectDeletenext to the prompt. To clear the entire session history, in the upper-right corner ofAI Agent Session, selectClear session history.
- (optional) To provide feedback on AI Agent responses:
- After an AI Agent response, selectSend Feedback.
- InResponse Feedback, selectLikeorDislike.
- InFeedback, enter your feedback.
- SelectSubmitto submit your feedback.
- To generate the plan, aboveAI Agent, selectGenerate plan.TIP:To generate the plan, you can also type the promptgenerate planinAsk AI Agent, and then pressEnter. When the plan is generated, the AI Agent displays a description of the plan and may prompt you to provide project details, specifications, or files to refine the plan.TIP:To stop generating a plan or any response, selectStop Generating.
- To validate the plan before execution, selectValidate plan, or inAI Agent, type the promptvalidate plan, and then pressEnter. The AI Agent reviews the plan for completeness and correctness before building.
- To have the AI Agent make changes to the plan, selectUpdate plan, or inAI Agent, type the promptupdate plan, and then pressEnter.
- To implement the plan, selectExecute plan, or inAI Agent, type the promptexecute plan, and then pressEnter.TIP:TheExecute planquick prompt is only visible when there is at least one uncompleted, validated plan. When building your project,Session in Progress (Build)
appears in the top-left of
AI Agent Session. AsAI Agent Build Agentimplements your plan, you can view the markdown file that the AI Agent generated to monitor the build progress. A blue dot appear on the tab of the plan markdown file while it is still updating. You do not need to keep the markdown file open to monitor the build. The blue dot remains visible on the tab even when you are working in other files, so you can continue working and check back at any time.The Build agent either successfully completes all steps in the plan or stops when it encounters blocked steps. When steps are blocked, the Build agent provides a reason for each block and may suggest options to proceed. Possible options include:- Prompt the AI Agent to retry all steps.
- Prompt the AI Agent to retry specific blocked steps.
- SelectContinue Planningto return to Plan mode and modify the plan to address the blocked steps.
When all plans are complete and no further changes are needed, inAI Agent Session, selectFinish Sessionto clear the session history and start a new plan and build session.If at least one existing plan is incomplete, theContinue Planningquick prompt appears above the AI Agent input line. SelectContinue Planningto return to Plan mode and work with an incomplete plan.
Provide Feedback