---
title: "Sofi server actions"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/sofi/server-actions/
type: reference
application: sofi_core
last_updated: 2026-12-03
commit: 6777698daac5
---


Sofi server actions are scripts that the Sofi conversation stack called during a conversation, for example to look up a user or log a ticket. In 2027.1 nothing in the product runs them. This page lists their fields and shipped records, for administrators who find them on an upgraded instance.

<Callout type="warning">
  **Changed in 2027.1.** The conversation stack that called server actions is removed. The table and menu remain, so existing records are kept but have no effect. Conversations run through AI assistants and their tools instead. Move any logic you still need into an AI tool. See [AI tools](page:sofi/assistants/ai-tools).
</Callout>

Server actions are in the **Administration** workspace under **Predictions & routing → Virtual agent → Server actions**. You need the `administrator` role.

## Move a server action to an AI tool

An AI tool does the same kind of work, called by an AI assistant instead of a conversation script.

1. Copy the logic of the server action's **Script** into the **Execution Script** of a new AI tool.
2. Declare each input as an AI tool parameter. The script reads them from `parameters`, not from `action` or `context`.
3. Assign the result to `answer`, as before.
4. Add the tool to the assistants that need it.

## Fields

| Field | Type | Required | Behaviour | Purpose |
| --- | --- | --- | --- | --- |
| **Name** | String | No | The name the 1.11 conversation called. | Identifies the server action. |
| **Type** | Choice | No | Choice list, Lookup, Log ticket or Custom. | How the 1.11 conversation used the result. |
| **Description** | String | No | None. | Says what the action does. |
| **Script** | Code | No | Receives `action` and `context` and assigns the result to `answer`. | The work the action does. |
| **Active** | Boolean | No | Defaults to true. | Turns the action on or off. |

Client actions, under **Predictions & routing → Virtual agent → Client actions**, have a **Name**, a **Script** and **Active**. None are shipped.

## Types

| Type | What the 1.11 conversation used it for |
| --- | --- |
| Choice list | Showing a list of records for the user to choose from. |
| Lookup | Returning a value that picked the branch the conversation followed. |
| Log ticket | Creating a ticket and showing its details to the user. |
| Custom | Whatever the conversation step expected. |

## Shipped server actions

Servicely 2027.1 still ships these records with SOFI Core. They have no effect.

<!-- source: sofi_core/data/SofiServerAction -->
| Name | Type | Description |
| --- | --- | --- |
| dialogManager.logTicket | Log ticket | Logs a ticket from the conversation. |
| dialogManager.zeroContactResolution | Log ticket | Logs a ticket with the requester's mobile, location and email from their user record. |
| dialogManager.userLookup | Choice list | The default user lookup. |
| dialogManager.setVariable | Lookup | Sets a variable from the user's last input. |
| servicely.getValidDate | Lookup | No description. |
| demo.checkAutomatedAction | Lookup | Demonstration. Checks the result of an automated action. |
| demo.actionHelpedResult | Lookup | Demonstration. Updates closure notes when an action helped. |
| demo.actionDidNotHelp | Lookup | Demonstration. Runs when an action did not help. |
| demo.getTargetRecord | Lookup | Demonstration. Gets the target record of an interaction. |
| demo.getRelatedArticle | Lookup | Demonstration. Gets an article related to a business service. |
| demo.fallbackAutoResolution | Lookup | Demonstration. Looks for a resolution item for the user's text. |
| demo.whoIsItFor | Lookup | Demonstration. No description. |
| demo.getRequestedForDetails | Lookup | Demonstration. No description. |
| demo.moreDetails | Lookup | Demonstration. No description. |
| demo.getBusinessService | Choice list | Demonstration. No description. |
| demo.userLookup | Choice list | Demonstration. A user lookup. |
| demo.SSO_Account_Check | Custom | Demonstration. No description. |
| demo.SSO_Unlock_Account | Custom | Demonstration. No description. |
| demo.SSO_answer_security_question | Custom | Demonstration. No description. |
| demo.SSO_security_question_process | Custom | Demonstration. No description. |
| test_action | Lookup | Test. No description. |

## Related

- [How Sofi is built](page:sofi/how-sofi-is-built)
- [AI tools](page:sofi/assistants/ai-tools)
- [Script libraries](page:automation/scripts/script-libraries)
