Source: https://support.atomicwork.com/product/enterprise-workflows/get-started/build-workflows-with-ai-assist

# Build workflows with Service Assist

Describe what you want to automate in plain English, and Service Assist builds the workflow for you. You review the draft, test it, and publish it. You can come back later and change it by chat.

Service Assist builds [workflows](/product/enterprise-workflows/get-started/how-a-workflow-works), where every step after the trigger is code that Service Assist writes.

## Start a workflow

You can start from **New** in the Workflow library or from **Service Assist**.

### Start from New

1. Go to **Automations > Workflow library**.

2. Pick **Event-based** for a workflow that starts on an event, or **Schedule-based** for one that runs on a schedule.

3. Select the object the workflow runs on, such as **Request**. For request and change workflows, click your workspace under the object.

4. Click **New**. A full-page Service Assist opens with the scope already set. For a **Change** object, **New** creates a draft workflow and opens it in the builder, with the Service Assist panel open.

### Start from Service Assist

In the Workflow library, click **Service Assist** to open the Service Assist panel.

![The Workflow library with the Service Assist panel open](assets/build-workflows-with-ai-assist-01-library-assist.png)

## Describe the workflow

Describe the workflow in the prompt box. Say what starts the workflow, what it should check, and what it should do.

For example: "When an incident is created with Urgent priority, post it to the #it-major-incidents Slack channel and assign it to the Network team."

When a request could mean more than one thing, Service Assist asks a question card. When it builds a workflow, it groups its open questions into a single stepped card. Answer the questions to fill in details such as groups, tags and priorities.

## Review, test and publish

Service Assist shows you the draft before tests run. Read through the steps in the **Builder** and ask for changes until the workflow does what you want.

Workflow tests use simulated data. Live verification runs only with your approval, on a labeled test record.

When you're happy with the workflow, click **Publish** so that Atomicwork can run it. You can also ask Service Assist to publish it.

## Edit an existing workflow

To change a workflow, open it, click **Service Assist**, and describe the change in the chat box. For example: "Also send a Slack message to #it-support when the priority is High."

## Sample use cases

Here are some use cases that our customers have built using Service Assist:

- Analyze the request to see if the requester is frustrated. If they are, set the priority to high. Otherwise, set the priority to medium.

- If the last reply to the request is a thank you message, don't reopen the ticket. Add a private note to let other agents know to ignore it because it's a thank you. If it's not a thank you, set the status of the ticket to open.

- Check if the request type is an incident. If so, and if the description or subject mentions a wifi issue, set the priority to high and assign the ticket to a teammate.

- Schedule a workflow at 9am to check if any high-priority tickets are close to violating the Resolution SLA. If so, escalate it to a supervisor through email or Slack or Teams.

## Tips

- Be specific. Instead of asking to notify someone, name the exact group and priority level.

- Review the draft before you publish.

- Say that the workflow is scheduled if you want it to run periodically.

- Make one change at a time when you edit an existing workflow.

## Troubleshoot common issues

| What you see                     | Why it happens                                | What to do                                                               |
| -------------------------------- | --------------------------------------------- | ------------------------------------------------------------------------ |
| The result isn't what you wanted | The description left room for interpretation. | Name the exact group, field and priority, and make one change at a time. |
| A test fails                     | The draft doesn't yet do what you described.  | Ask Service Assist to check the workflow for errors.                     |
