AI workflow assistant
Overview
Section titled “Overview”In Azure Logic Apps Automation, the AI assistant helps you create and edit a workflow from a description of the task. You can review the result in the designer and refine it with follow-up instructions.
How to
Section titled “How to”- Open a workflow in the designer and open the Copilot panel.
- Describe the starting event, the steps you want, and the result. Select Generate.
- Review the assistant’s response and the workflow changes. Depending on the selected edit mode, you might need to approve a proposal, or changes might be applied automatically.
- Configure any missing connections and parameters. Check the trigger, actions, and expressions before testing.
- Continue the conversation to request a specific change, then review the result again.
The composer can offer Ask first and Auto-apply modes. For full-workflow edits, it can also offer Agent mode and Classic mode. Available controls and models depend on the workflow scope and your connection.
What the assistant does
Section titled “What the assistant does”- Generates a workflow from a plain language prompt.
- Suggests triggers and actions for your described workload.
- Edits an existing workflow when you provide more instructions.
How the assistant works
Section titled “How the assistant works”- You provide your prompt through Copilot in the designer.
- The assistant proposes or applies workflow changes using the definition that the designer reads.
- Review each component on the designer canvas. Edit the components that you need to configure or change.
- Provide a follow-up prompt to refine your workflow. For example,
"Replace sequential execution with parallel branches"or"Add error handling to the HTTP action".
Common FAQs
Section titled “Common FAQs”Q: What are best practices to generate easy-to-validate workflows?
Section titled “Q: What are best practices to generate easy-to-validate workflows?”Make sure to describe your workflows with clarity and precision. Specify the trigger, actions, services, systems, and results you want. Ambiguous prompts produce vague workflows.
Here are some example prompts that show clarity and precision:
"When I get an email where the subject includes 'invoice', save the attachment to Blob Storage and post a message to Teams.""Every weekday at 9 AM, get yesterday's failed runs for this workflow and email me a summary.""When a new Service Bus message arrives, call this HTTP endpoint. If you get a 5xx message, retry three times with backoff."
Q: Does a generated workflow use the same schema as a workflow I build with the designer?
Section titled “Q: Does a generated workflow use the same schema as a workflow I build with the designer?”Yes, an assistant-generated workflow uses the same underlying JSON schema as if you built the same workflow with the designer. This schema includes trigger and action definitions, required expressions, and so on.
Q: Does the assistant also configure the workflow?
Section titled “Q: Does the assistant also configure the workflow?”The assistant can propose or apply workflow changes, but you should review the result and provide any missing environment-specific details, for example:
- Configure a connection for each connector-based action. You can create the connection at the app level or on each operation.
- Provide parameter values that the assistant leaves empty. Required parameters show red outlines or asterisks.
- Resolve any prompts that show Finish configuring with Copilot on operations.
- Validate workflow behavior as early as possible. To find missing configuration items before you publish the workflow, use the designer’s Test capability.