---
title: "Create an intelligent action"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/sofi/create-an-intelligent-action/
type: task
application: sofi_core
last_updated: 2026-12-03
commit: 6777698daac5
---


Create an intelligent action when agents repeat the same diagnostic or fix on tickets, such as checking a service, and you want it one select away. This page sets up an action that runs a server script. An action that calls an integration such as Node-RED uses an Asynchronous queue provider instance instead.

<Callout type="info">
  **Changed in 2027.1.** Agents run actions from the **Sofi Smart Actions** tab of the Sofi panel, because the **Run intelligent action** box is removed from the work journal. An inactive action cannot be run.
</Callout>

## Before you begin

- You need the `administrator` role.
- Write a script library with a function that does the work and returns an object with `status` and `output`. The action result is available to it as `action`.

## Steps

<Steps>
  <Step>
    In the **Administration** workspace, go to **Integrations → Intelligent actions → Action provider instances** and select **New**.

    <Image src="asset:screenshots/admin/sofi-create-an-intelligent-action/intelligent-actions-menu.png">The Action provider instances and Action catalog items items in the Integrations menu.</Image>

    <Image src="asset:screenshots/admin/sofi-create-an-intelligent-action/new-action-provider-instance.png">The empty Create Action provider instance form, with Name, Active, Provider, Connection type and Connection string.</Image>
  </Step>
  <Step>
    Enter a **Name**, set **Connection type** to Server script and set **Connection string** to the name of your script library. Select **Active** and save.
  </Step>
  <Step>
    Go to **Integrations → Intelligent actions → Action catalog items** and select **New**.

    <Image src="asset:screenshots/admin/sofi-create-an-intelligent-action/new-action-catalog-item.png">The empty Create Action catalog item form, with the Item configuration tabs and the Action provider instance under Action configuration.</Image>
  </Step>
  <Step>
    Enter a **Name** that tells agents what the action does. Set **Action provider type** to Server script and **Action provider instance** to the instance you created.
  </Step>
  <Step>
    Set **Action provider method** to the name of the function in the script library.
  </Step>
  <Step>
    Add any questions the action needs answered before it runs, as you would on a catalog item.
  </Step>
  <Step>
    To let Sofi suggest the action, select **Show in Smart Actions** and add the ticket tables to **Smart action tables**, for example Incident.
  </Step>
  <Step>
    Optionally, set **Action pre-processing script** and **Action post-processing script**, for example to set the text shown while the action runs.
  </Step>
  <Step>
    Select **Active** and save.
  </Step>
  <Step>
    Open a ticket of one of the tables and open the **Sofi Smart Actions** tab of the Sofi panel. Search for the action by name and run it, to check the result.
  </Step>
</Steps>

## Result

Agents can run the action from tickets of the selected tables. Each run creates an action result, shown in the ticket's **Intelligent actions log** and in **System & deployment → Logs → Action results**. As runs build up on similar tickets, Sofi's action classifiers start to rank the action in the **Sofi Smart Actions** tab.

## Related

- [Intelligent actions](page:sofi/intelligent-actions)
- [Script libraries](page:automation/scripts/script-libraries)
- [Node-RED](page:integrations/node-red)
