> For the complete documentation index, see [llms.txt](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/lifecycle-management/how-to/create-with-ai.md). Agents can also search and read this documentation through its [MCP server](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/~gitbook/mcp).

# Create with AI for Lifecycle Management

Use Access AI in the Lifecycle Management workflow editor to draft and refine condition strings and formatters, then apply the suggestions you choose.

{% hint style="info" %}
Create with AI has [requirements](#before-you-start) for the tenant and for each user.
{% endhint %}

{% hint style="warning" %}
**AI-generated content:** Create with AI uses generative AI. The LCM Policy Agent drafts condition strings and formatters from your description. Its suggestions can be inaccurate or incomplete. Review each suggestion before applying it.
{% endhint %}

## Overview

The **Create with AI** button in the Lifecycle Management workflow editor, and on a shared attribute mapping's edit panel (a **Transformer** in earlier releases), opens the Access AI panel for the **LCM Policy Agent**. Describe the condition or the transformed value you want in plain language, and the agent suggests the matching syntax with a short explanation. The suggestion appears as an action card in the Access AI panel, and you decide whether to apply it. Applying a suggestion updates the form field only. Saving the workflow or the shared attribute mapping saves the change.

The button appears next to these fields:

* **Condition strings**
  * The **Identity matches this condition** clause in a workflow's trigger panel.
  * A condition node, when its condition type is not **Always**.
* **Formatters**
  * The **Formatter** of an attribute on an action that maps attributes, such as **Provision Account** (named **Sync Identities** in earlier releases), **Deprovision Account**, **Reset Password**, or **Create Email**, once a destination attribute is set. Structured attributes and the fallback formatter have no button.
  * The unique identifier attribute of those actions.
  * The **Formatter** of a shared attribute mapping.

## Before you start

Create with AI requires all of the following. If any is missing, the **Create with AI** button does not appear.

* **The LCM Policy Agent**: Lifecycle Management includes it. See [Access Agent availability](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents.md#which-access-agents-you-have).
* **Access AI turned on**: See [Enabling Access AI](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents.md#enabling-access-ai).
* **The Administrator role.** Only administrators can edit Lifecycle Management workflows and shared attribute mappings. See [Roles](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/administration/administration/users/roles.md).

The LCM Policy Agent reads the policy's configuration with your own permissions, not an elevated service identity. It reads the policy's identities only when you ask it to test a condition or formatter, and it does not read run data. The agent does not save workflows: a suggestion takes effect after you apply it and save the workflow.

## Create a condition string with AI

1. Open **Lifecycle Management**, select a policy, and open the workflow in the workflow editor.
2. Open the field to draft:
   * For the trigger condition, select the **Trigger** box. In the trigger panel, locate the **Identity matches this condition** clause.
   * For a condition node, select the node on the canvas.
3. Select **Create with AI**. The Access AI panel opens. If the field is empty, the agent drafts a new condition string. If it has a value, the panel offers suggested actions, such as **Test this condition against identities** and **Change or add to this trigger**. See [LCM Policy Agent](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents/agents/lcm-policy-agent.md#test-a-condition-or-formatter).
4. Describe the condition in plain language, for example: "Active Workday workers in the Engineering department whose start date is within the next 7 days".
5. Review the **Condition String** action card, which contains the suggested condition and an explanation.
6. Select **Apply Condition** to write the suggestion into the field, replacing its current value. The card then reads **Condition Applied**. To decline the suggestion, select **Reject**. The card then reads **Rejected**. Continue the conversation to ask for another suggestion.
7. Review the value, and save the workflow.

{% hint style="warning" %}
**Apply Condition** writes to the condition field that is open in the workflow editor, not necessarily the one the thread was opened from. Before applying a suggestion, confirm that the intended trigger panel or condition node is open.
{% endhint %}

**Apply Condition** is available only while a condition field is open on a workflow editor page. On any other page, the card shows **Go to Workflow** instead, which opens the workflow.

## Create a formatter with AI

1. Open **Lifecycle Management** and select a policy. For an action, open the workflow in the workflow editor.
2. Select the action and locate the attribute to format. For a shared attribute mapping, open it for editing instead.
3. Select **Create with AI** next to the **Formatter** field. The Access AI panel opens, and the agent receives the destination attribute, the entity type, and the current formatter if one is set. If a formatter is set, the panel offers suggested actions, such as **Try this formatter on a few identities** and **Change or add to this formatter**.
4. Describe the value in plain language, for example: "Lowercase the first initial and full surname, joined with a period, then append `@example.com`".
5. Review the **Formatter for** *attribute* action card. Pipeline functions in the suggestion appear under **Then apply:**.
6. Select **Apply Formatter** to write the suggestion into the **Formatter** field, replacing its current value. The card then reads **Formatter Applied**. To decline the suggestion, select **Reject**.
7. Review the value, and save the workflow or the shared attribute mapping.

When the suggestion includes pipeline functions, applying it also replaces the **Then Apply** value. When it has none, the existing **Then Apply** value is left unchanged, so clear it yourself if it no longer applies.

**Apply Formatter** is available only while a formatter field for the same destination attribute is on screen. If you close the attribute or move to another action, return to it to apply the suggestion. The formatter card has no **Go to Workflow** button.

## Conversation threads

When the field is empty, **Create with AI** starts a new thread with the LCM Policy Agent. When the field has a value, the panel opens on an empty chat, and a suggested action you select starts a new thread with the LCM Policy Agent. The agent keeps the context it was opened with, such as the policy and the field, across every turn in that thread, so follow-up requests do not need to restate it.

To return to a past thread, open **Access AI** > **Threads** in the main navigation. To rename, move, or delete a thread, use **Rename Thread**, **Move Thread**, or **Delete Thread** in the thread's options menu.

## Related

* [LCM Policy Agent](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/access-agents/agents/lcm-policy-agent.md): what the agent can do, where it appears, and what it requires.
* [Policies](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/lifecycle-management/policies-workflows/policies.md): workflow triggers, conditions, and actions.
* [Trigger Conditions Reference](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/lifecycle-management/policies-workflows/actions/trigger-conditions-reference.md): SCIM filter syntax for condition strings.
* [Transformer Reference](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/lifecycle-management/transformers/transformer-reference.md): formatter functions and the Then Apply pipeline.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/lifecycle-management/how-to/create-with-ai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
