> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usertick.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Usertick runs surveys on websites, by link, by QR code and by email, and collects every response in one inbox with reports, dashboards and workflows. The REST API lives at https://app.usertick.com/api/public/v1 and uses Bearer API keys or OAuth access tokens; the JavaScript SDK is the @usertick/snippet package on npm.

# Build a workflow with AI

> Describe what should happen after a response, answer a few questions and let Usertick AI draw the workflow. Available on Starter and above, using AI credits.

**Build with AI** draws a workflow from a sentence you write. On the Starter plan and above, it opens as the first pane of the create window.

## Build a workflow

**1. Describe it**

On the **Workflows** page, select **New workflow**. Under **What should happen after a response?**, describe it in a sentence, in any language, or select an idea under **Start from an idea**.

**2. Answer the questions**

The AI asks which survey, which responses and which tools to use, and you can select the answers or type your own.

**3. Review the draft**

After the AI draws the flow, you can change it by sending another message, such as "only for urgent responses".

**4. Create it**

Enter a **Workflow name** and select **Create workflow**. The workflow opens on the canvas in edit mode.

Usertick creates nothing until you select **Create workflow**, and the new workflow starts as a draft that you [test](https://docs.usertick.com/workflows/test-run.md) and [publish](https://docs.usertick.com/workflows/publish.md) like any other.

## The questions

The chat asks up to four questions:

* **Which survey is this workflow for?** lists recent published surveys, and **Find a survey** finds any other one. The chat skips this question when you started from one survey or only one survey is published.
* **Which responses should start it?** offers answers such as **Every response**, **Urgent responses**, **Bug reports** or **Customers at risk of leaving**.
* **Which tools should it use?** marks a tool that isn't connected as **Not connected**, and **No tool** builds the flow with **Notify teammates**, or with **Assign to teammates** when you ask for responses to be assigned.
* **What else should the workflow do?** goes straight to the flow when you select **No, nothing to add**.

When your first message already names the survey, the responses or the tools, such as "Post bug reports from Checkout to Slack", the chat skips those questions and lists what it took under **From your message:**, where selecting an item lets you answer it again. **Change answer** on an earlier answer asks the questions after it again, and **Start over** clears the chat.

## Change the draft

Every message you send after the draft changes it, and **Follow up if still open** and **Urgent responses only** offer two common changes. If drawing stops before the end, for example because the window closed, Usertick keeps the steps drawn so far and **Continue** draws the rest. When the chat can't build part of a request, it lists that part after "The workflow chat can't do these here:".

Usertick keeps an unfinished chat in your browser, and the next time you open the window, **Continue where you left off** offers **Continue chat** and **Discard**.

## Plan and AI credits

The Starter, Pro and Business plans include building workflows with AI. On Free, the pane shows "Building workflows with AI is not part of your plan.", while templates and blank workflows still work.

The chat uses the organization's monthly [AI credits](https://docs.usertick.com/account/billing.md#ai-credits):

| Action | Credits |
| - | - |
| A message the AI answers | 1 |
| Drawing the flow, each change to it, and **Continue** | 4 |

Selecting an answer, changing an answer and reopening a chat don't use credits. When no credits are left, the chat pauses until they renew, and you can start from a template or a blank workflow in the meantime. The chat can't add a workflow to a survey that already has as many workflows as your plan allows.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.