﻿---
title: Author workflows with natural language
description: Create and edit Elastic Workflows by describing what you want in natural language in Kibana, without writing YAML by hand.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/workflows/authoring-techniques/use-natural-language
products:
  - Elastic Cloud Enterprise
  - Elastic Cloud Hosted
  - Elastic Cloud Serverless
  - Elastic Cloud on Kubernetes
  - Elastic Stack
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Planned
---

# Author workflows with natural language
Create and edit workflows by describing what you want in plain language. Kibana generates and updates the workflow YAML for you, so you can automate outcomes without memorizing step types or Liquid syntax. You can still open the [YAML editor](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/workflows/authoring-techniques/use-yaml-editor) at any time if you prefer to write definitions by hand.
<admonition title="Requirements">
  To use workflows, you must turn on the feature and ensure your role has the appropriate privileges. Refer to [Set up Workflows](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/workflows/get-started/setup) for more information.You must also have the appropriate subscription. Refer to the subscription page for [Elastic Cloud](https://www.elastic.co/subscriptions/cloud) and [Elastic Stack/self-managed](https://www.elastic.co/subscriptions) for the breakdown of available features and their associated subscription tiers.Natural language authoring also requires Elastic Agent Builder access and a configured LLM. Refer to [Get started with Elastic Agent Builder](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/ai-features/agent-builder/get-started) and [Model configuration](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/ai-features/agent-builder/models).
</admonition>

Both authoring paths use Elastic Agent Builder, but they differ in where you work:
- **In the workflow editor**: A chat sidebar sits beside the YAML. The agent proposes changes directly in the editor, and you apply or discard them before saving.
- **In Agent Chat**: You work in a full-page Elastic Agent Builder conversation and save the generated workflow from a preview.


## Author in the workflow editor

1. Open **Workflows** from the navigation menu or the [global search field](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/find-and-organize/find-apps-and-objects), then either select **Create workflow** to start a new workflow, or select an existing workflow to change it.
2. For a new workflow, the **Elastic AI Agent** chat sidebar opens automatically beside the YAML editor. For an existing workflow, select the **AI Agent** button in the Kibana header to open the sidebar.
3. Describe what you want in the chat sidebar. To build a workflow, name the trigger, data sources, conditions, and any connectors or notifications when you know them, for example: "When a critical alert fires, search for other alerts on the same host in the last hour and post a summary to Slack." To change an existing workflow, describe the change, for example: "Add a `console` step that logs the search hit count."
4. Review the generated YAML. Ask for changes in natural language until the definition matches what you need.
5. Apply or discard each proposed change (or all of them), then select **Save**.

The sidebar runs an Elastic Agent Builder conversation, so the exchange is saved to your [conversation history](/elastic/docs-content/pull/7629/explore-analyze/ai-features/agent-builder/chat#find-conversation-history) alongside conversations you start elsewhere.

## Create a workflow from Agent Chat

You can also create a workflow without opening **Workflows** first. Describe the automation in a full-page Elastic Agent Builder conversation, refine the draft, then open **Preview** and select **Save** (or **Override** if you are replacing an existing workflow).
For the full Agent Chat procedure, refer to [Create skills and workflows in chat](/elastic/docs-content/pull/7629/explore-analyze/ai-features/agent-builder/chat#create-skills-and-workflows-directly-from-chat).

## Next steps

- Run a [test run](/elastic/docs-content/pull/7629/explore-analyze/workflows/authoring-techniques/use-yaml-editor#workflows-test-vs-production-runs) from the workflow editor to verify the workflow before you enable production triggers.
- [Monitor workflow execution](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/workflows/authoring-techniques/monitor-workflows) to review runs and troubleshoot failures.
- Explore [AI-augmented workflows](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/workflows/use-cases/ai-augmented-workflows) for patterns that combine workflows with agents at runtime.


## Related pages

- [Use the YAML editor](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/workflows/authoring-techniques/use-yaml-editor): Editor layout, validation, and test versus production runs.
- [Build your first workflow](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/workflows/get-started/build-your-first-workflow): Hands-on tutorial with sample data.
- [Create skills and workflows in chat](/elastic/docs-content/pull/7629/explore-analyze/ai-features/agent-builder/chat#create-skills-and-workflows-directly-from-chat): Agent Chat creation flow.
- [Connect agents and workflows](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/ai-features/agent-builder/agents-and-workflows): How Elastic Agent Builder and Elastic Workflows work together.
- [Manage and organize workflows](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7629/explore-analyze/workflows/authoring-techniques/manage-workflows): Find, edit, enable, and run workflows from the **Workflows** page.