Build a agent flow with natural language

You can build and configure a complete end-to-end agent flow by having a multi-turn conversation with Copilot in Copilot Studio. Describe what you want your agent flow to do, and Copilot guides you through a back-and-forth conversation to clarify your intent, set up connections, and configure each step—without requiring you to manually build the flow in the designer. Copilot:

  • Engages in a multi-turn conversation to understand your goals and refine your agent flow.
  • Builds and configures the complete end-to-end agent flow based on your conversation.
  • Sets up required connections and applies the necessary parameters.

Important

This feature uses Anthropic models and may dynamically select or fallback between supported models. Review your organization's AI usage policies before using this feature. To grant or review access, admins must turn on external models in the Power Platform admin center for the environment or environment group.

Currently, natural language authoring is not available for workflows. If you want to build a workflow, you can use the designer to create it. Learn more in Edit and manage your workflow in the designer.

Create a agent flow with natural language

  1. Select Flows from the navigation pane to go to the Workflows page.

  2. In the Copilot chat panel, describe what you want your agent flow to do in everyday language. Read tips for writing a good prompt.

    Your description can include any combination of the following:

    • Trigger: What event starts the agent flow. For example, when an email arrives, when a form is submitted, or on a recurring schedule.
    • Connector: The app or service involved, such as Outlook, Teams, SharePoint, or Forms.
    • Actions: What the agent flow should do, such as send a message, create an item, or send an approval.
    • Conditions: Any logic that controls when an action runs. For example, only act on emails from a specific sender.
    • Specific parameters: Named values like a SharePoint list name, an email address, or a Teams channel.

    Including as much detail as possible upfront gives Copilot everything it needs to build and configure your agent flow in one shot. For example: "When an email from my manager arrives, post the email subject to the Announcements channel in the Contoso Teams workspace."

  3. Select the submit button. Copilot generates a agent flow based on your description. Review the agent flow plan it presents. If you want changes, describe them in the chat. For example:

    Copilot-generated agent flow plan What you can say to refine it
    Post the email subject to the General channel in Teams. Post to the Announcements channel instead.
    Send a mobile notification when a SharePoint item is created. Send me an email instead of a mobile notification.
  4. When you're satisfied with the plan, confirm to proceed. Copilot builds and configures the complete end-to-end agent flow, including connections and parameters.

  5. Select Save to finalize the agent flow and open it in the flow designer for confirmation and any additional edits.

    Note

    Once you open the agent flow in the designer, the Copilot chat panel can no longer make changes to the agent flow. Use the designer to edit from this point forward.

  6. Test and publish your agent flow in the designer.

How to write a good prompt

A good prompt gives Copilot everything it needs to build and configure your agent flow accurately in one shot. Here are tips for writing a good prompt:

  • Provide your prompt in When X happens, do Y format to get better and more accurate results.
  • Be as specific as possible. When an email arrives, I want to post the subject of the email to 'Contoso' Teams General channel is more effective than the generic I want to process an email.
  • Mention the connector or app if you can, such as Outlook, Teams, or SharePoint.
  • Use the same language you would use when talking to a colleague or friend.
  • Avoid technical terms or jargon—Copilot handles the technical configuration for you.

Learn more in The art of the prompt: How to get the best out of generative AI. More examples are available in the prompt library. Visit the Sample Solution Gallery and in the Products list, select Copilot Studio.

Next steps

Important

Copilot is new technology that's still being developed. It's optimized for use with the English language and has limited support for other languages. Parts of it might appear in English rather than your preferred language. Copilot capability is powered by Azure OpenAI Service.