---
title: "Create an intelligent action"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/sofi/create-an-intelligent-action/
type: task
application: sofi_core
last_updated: 2026-10-18
commit: c0e55f26ec7b
---


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.

## 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>
    Go to **Intelligent automation → Intelligent actions → Action provider instances** and select **New**.
  </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 **Intelligent automation → Intelligent actions → Action catalog items** and select **New**.
  </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 run the action with **Run intelligent action** in the activity, 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 **Administration → Logging & statistics → 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/script-libraries)
- [Node-RED](page:integrations/node-red)
