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

# Next Matter actions

> Use any of the no-code templates available to perform an action on the Next Matter instance.

## Stop instances

Use this no-code step as a result of [a condition](/docs/set-conditions-to-a-step) or as the last step in the workflow.

1. Click **Workflows > + Create new\... > Create a new workflow** and give your workflow a name. If you have a workflow ready, click **... > Edit workflow**.

2. Click **+ Add step** and select **Integrations > Next Matter action**.

3. In the operation dropdown, select **Stop instance**.

   <Frame>
     <img src="https://mintcdn.com/nextmatter/n_eDywRY2Y_RWlpG/images/docs/9b2adf6-image_12.png?fit=max&auto=format&n=n_eDywRY2Y_RWlpG&q=85&s=3817a62c143e7d155f811b4ae684e15c" alt="Image of Next Matter stop instance action setup" width="3000" height="1322" data-path="images/docs/9b2adf6-image_12.png" />
   </Frame>

4. Provide the Instance ID.

   <Accordion title="Where is instance ID?">
     The instance ID is an item of metadata created when an instance is created. You can find it when you open the data reference braces or by calling Next Matter API ([List instances](/reference/processes_instances_list)).

     <Frame>
       <img src="https://mintcdn.com/nextmatter/SgcAiYe3VpK6bFPP/images/docs/afc6876-instance.png?fit=max&auto=format&n=SgcAiYe3VpK6bFPP&q=85&s=48010880b8a43f0cc671ad22a866a2f4" alt="Image of the instance ID in data referencce dropdown" width="2940" height="1666" data-path="images/docs/afc6876-instance.png" />
     </Frame>
   </Accordion>

5. Add any variables you need to reuse later.

   <Info>
     User variables are not displayed in the output. However, they are visible in the data reference dropdown if you want to use them in further steps.
   </Info>

6. Save your changes.

<Tip>
  You can find no-code data calculations or formatting actions you can perform on Next Matter data in **Integrations > Quick Actions**.
</Tip>

## Add or overwrite instance tags

You can add tags to instances to categorize them and improve their searchability. See [how you can create tags](/docs/use-tags-for-better-filtering#create-tags)

With this action, you can add new tags to your instance or overwrite existing ones.

You can use this action step in combination with conditions. For example, if the customer email doesn't come from a list of approved domains, you can automatically run this step to add a warning tag.

<Tip>
  You can use this action step in combination with conditions. For example, if the customer email doesn't come from a list of approved domains, you can automatically run this step to add a warning tag.
</Tip>

1. Click **Workflows > + Create new\... > Create a new workflow** and give your workflow a name. If you have a workflow ready, click **... > Edit workflow**.

2. Click **+ Add step** and select **Integrations > Next Matter action**.

3. In the operation dropdown, select **Tags: create, add, overwrite**.

4. Add the tags you want to create. They should be a maximum of 100 characters. You can also use a data reference to create a tag from data already in the workflow instance.

5. If you want to replace existing tags with new ones, toggle on **Overwrite all existing tags**

   <Tip>
     If you want to replace only specific tags and leave some of the old ones in place, add the ones you keep to the **Add tags** list.
   </Tip>

6. Tags have a limit of 100 characters to maintain readability. If you use a data reference as a tag, you might not know how long the final tag will be. In that case, it's a good idea to toggle on the **Fail step if a tag exceeds 100 characters**. Otherwise, the instance overview might be cluttered with unreadable tags.

7. Save your changes.

## Export step as PDF

The step works on the running instance.

1. Click **Workflows > + Create new\... > Create a new workflow** and give your workflow a name. If you have a workflow ready, click **... > Edit workflow**.

2. Click **+ Add step** and select **Integrations > Next Matter action**.

3. In the operation dropdown, select **Export step from Next Matter**.

4. Enter or reference the step ID (for multiple steps, click **+ Add**).

   <Accordion title="Where is step ID">
     1. In your left-hand navigation, click the **Workflows** icon.

     2. Hover over the follow-up workflow and click on the menu icon.

     3. Click **Edit workflow**.

     4. Click the step to which you'd like to send data.

     5. Copy the step ID. It's the last number in the URL you see in your browser.

     <Frame>
       <img src="https://mintcdn.com/nextmatter/n_eDywRY2Y_RWlpG/images/docs/a46ac17-step_ID.png?fit=max&auto=format&n=n_eDywRY2Y_RWlpG&q=85&s=620ffd0ecce67892bd5579efd5c01e1d" alt="Image of the step ID in Next Matter URL" width="1457" height="821" data-path="images/docs/a46ac17-step_ID.png" />
     </Frame>
   </Accordion>

5. Expand **Advanced configuration** to select the template for the PDF export, define margins, or narrow down the form fields to export by entering the list of form field IDs. You can also toggle to enable options. **Tip**: Enter the number to define margins - the number should be a value in inches.

   <Accordion title="Where is form field ID?">
     1. In your left-hand navigation, click the **Workflows** icon.

     2. Hover over the follow-up process and click on the menu icon.

     3. Click **Edit workflow**.

     4. Click the step to which you'd like to send data.

     5. Click the ID icon for the field to which you want to copy data.

     6. Copy **Form field ID**.

     <img src="https://mintcdn.com/nextmatter/SgcAiYe3VpK6bFPP/images/docs/c098fb5-form_id.png?fit=max&auto=format&n=SgcAiYe3VpK6bFPP&q=85&s=b58c9cae55f58c832e686c662454748c" alt="An image of a step with the highlighted action ID" width="2940" height="1504" data-path="images/docs/c098fb5-form_id.png" />
   </Accordion>

6. Save your changes.

## Export instance as PDF

The step works on the running instance.

1. Click **Workflows > + Create new\... > Create a new workflow** and give your workflow a name. If you have a workflow ready, click **... > Edit workflow**.

2. Click **+ Add step** and select **Integrations > Next Matter action**.

3. In the operation dropdown, select **Export instance from Next Matter**.

4. Enter or reference the step ID (for multiple steps, click **+ Add**).

   <Accordion title="Where is step ID?">
     1. In your left-hand navigation, click the **Workflows** icon.

     2. Hover over the follow-up workflow and click on the menu icon.

     3. Click **Edit workflow**.

     4. Click the step to which you'd like to send data.

     5. Copy the step ID. It's the last number in the URL you see in your browser.

     <img src="https://mintcdn.com/nextmatter/n_eDywRY2Y_RWlpG/images/docs/a46ac17-step_ID.png?fit=max&auto=format&n=n_eDywRY2Y_RWlpG&q=85&s=620ffd0ecce67892bd5579efd5c01e1d" alt="Image of the step ID in Next Matter URL" width="1457" height="821" data-path="images/docs/a46ac17-step_ID.png" />
   </Accordion>

5. Expand **Advanced configuration** to select the template for the PDF export, define margins, or narrow down the form fields to export by entering the list of form field IDs. You can also toggle to enable options. **Tip**: Enter the number to define margins - the number should be a value in inches.

   <Accordion title="Where is form field ID?">
     1. In your left-hand navigation, click the **Workflows** icon.

     2. Hover over the follow-up process and click on the menu icon.

     3. Click **Edit workflow**.

     4. Click the step to which you'd like to send data.

     5. Click the ID icon for the field to which you want to copy data.

     6. Copy **Form field ID**.

     <Frame>
       <img src="https://mintcdn.com/nextmatter/SgcAiYe3VpK6bFPP/images/docs/c098fb5-form_id.png?fit=max&auto=format&n=SgcAiYe3VpK6bFPP&q=85&s=b58c9cae55f58c832e686c662454748c" alt="An image of a step with the highlighted action ID" width="2940" height="1504" data-path="images/docs/c098fb5-form_id.png" />
     </Frame>
   </Accordion>

6. Save your changes.
