Skip to navigation

Data Types

View as Markdown

What are data types?

Data types define the structure and format of values that variables can hold. They ensure type-aware behavior, enabling the AI agents to handle data consistently, such as collecting inputs in conversational slots, passing values between actions, or rendering them in citations.

For a complete walkthrough that creates a custom Data Type from scratch, attaches a dynamic resolver strategy, and uses it in a conversational process, see Quickstart #2: Slots & Resolvers.

How slots, data types, resolvers and output keys fit together

In a conversational process, these four pieces turn what a user says into values your actions can use:

  1. A slot is an input the process needs from the user, such as the Jira issue to close. Each slot has a data type.
  2. The data type says what shape the value has: a primitive such as string, a built-in type such as User, or a custom data type such as u_JiraIssue.
  3. A resolver strategy turns the user’s words, such as “my latest bug”, into a record of that data type. Every custom data type has a default resolver strategy, and slots that use the type inherit it unless the slot has its own inline resolver.
  4. An activity runs an action with the slot values. The activity’s output key stores the action’s result, so later steps read it as data.<output_key>, as described in the conversational process data bank.

Available data types

Data types vary by context:

  • Actions: Currently limited to a fixed set of primitive and built-in types.
  • Slots: Include the same types as Actions, plus support for custom data types.

Which types each editor offers

Where you pick the typeTypes you can choose
Script action input argumentsstring, integer, number, boolean, array, object
HTTP action and compound action input argumentsThe types above, plus built-in types such as User
Slots in a conversational processThe types above, plus your custom data types

object or a custom data type?

object is a primitive type for any key-value structure, such as { "role": "admin" }.

A custom data type, such as u_SalesforceAccount, adds a named JSON schema and a default resolver strategy, so a slot of that type can find a specific record in a business system. Custom data types appear only in slots.

Data types for actions

Actions currently support the following built-in data types.

TypeDescriptionExample Value
stringText or identifiers"alice@example.com"
integerWhole numbers42
numberDecimals or floats3.14
booleanTrue/false flagstrue
objectKey-value pair structures{ "role": "admin" }
UserMoveworks user objectCheck our User Attribute Reference
GroupA group or distribution list in your identity systemsSee Group and Room
RoomA conference room in your organization’s room dataSee Group and Room
FileFile upload objectFile data from user uploads
TicketMoveworks ticket objectTicket data from integrated systems
List[T]List of the selected typeList[string] -> ["alice@example.com", "jdoe@example.com"]

How to use these types

  • Use these types when defining inputs for actions.
  • For lists, specify the inner type (e.g., List[string] for a list of strings).
  • Group and Room appear in the data type list only for organizations where they are enabled. See Group and Room.

Group and Room

Controlled Availability

The Group and Room data types are being enabled for organizations individually. If they do not appear in your data type list, contact your Moveworks account team.

Group and Room are built-in data types, like User. Before they were available, a plugin that needed a group or a room had to collect a string and look the record up itself, or define a custom data type with its own resolver. Now you select the type directly, and the assistant resolves what the user said against your organization’s data with a built-in resolver strategy. You do not create or maintain the type, its schema, or its resolver.

Where you can use them:

  • Slots in a conversational process. The assistant resolves the user’s description to a Group or Room record before the process continues, and asks the user to choose when several records match.
  • Input arguments on compound actions. Pass a resolved record from a slot, or from an upstream step, into the compound action.
  • Resolver strategies for custom data types that return one of these types.

Once a slot or input argument uses one of these types, its fields appear in the Data Bank and in DSL autocomplete, so you can map them into later steps, for example data.room.building_info.floor.

Group

Represents a group or distribution list ingested from your identity systems, the same records the assistant uses for group access requests. The built-in resolver matches on the group’s name, email, or ID.

FieldTypeDescription
idstringMoveworks identifier for the group.
namestringDisplay name of the group.
emailstringEmail address of the group or distribution list.
descriptionstringDescription of the group.
external_idstringThe group’s identifier in the source system.
integration_idstringThe integration the group was ingested from.

Room

Represents a conference room from your organization’s room data, the same records behind People & Places Lookups. The built-in resolver matches on the room’s name.

FieldTypeDescription
idstringMoveworks identifier for the room.
canonical_namestringThe room’s name as it appears to users.
building_info.namestringBuilding name.
building_info.addressstringBuilding address.
building_info.floorstringFloor.
building_info.room_numberstringRoom number.
room_info.capacitystringSeating capacity.
room_info.room_amenitiesList[string]Amenities, such as a display or video conferencing.
room_info.phone_numberstringRoom phone number.
room_info.area_sizestringRoom size.
room_info.calendar_urlstringLink to the room’s calendar.

Fields are present only when your source data provides them. Room images are not included.

Data types for slots

Slots, used in conversational processes, support all the data types available in Actions, plus custom data types. Custom types allow integration with business systems, enabling slots to handle complex, system-specific objects.

  • Built-in Types: Identical to those in Actions (see table above).
  • Custom Data Types: User-defined types representing objects from external systems, such as SalesforceAccount or JiraIssue.

How built-in and custom types differ in slots

  • Custom types are exclusive to slots for advanced data collection in conversations.
  • They enable natural language resolution (e.g., converting “my latest ticket” to a JiraIssue object).
  • Do not merge custom types across systems—create separate types for similar objects in different systems (e.g., SalesforceAccount and NetsuiteAccount).

How do I configure custom data types?

Custom data types are configured exclusively for use in slots. Follow these steps to create and set them up in the Tool Studio.

Prerequisites

  • A JSON example of the data object from your business system (e.g., a sample API response).

Create and configure a custom data type

  1. Navigate to Data Types

  2. Create a New Custom Data Type

    1. Click Create
  3. Set Name and Description:

    1. Name: Must follow the convention u_<DataTypeName> (e.g., u_SalesforceAccount). This serves as a unique identifier. Tool Studio formats what you type: it removes spaces and symbols, capitalizes the first letter of each word and adds u_, so “Salesforce account” becomes u_SalesforceAccount. The result must start with u_ and a capital letter, contain only letters and digits after u_, and be 5–32 characters long, including u_. Names longer than 32 characters fail when you save, even though Tool Studio doesn’t flag them as you type. A name that starts with a digit, such as “3rd party vendor”, can’t be formatted this way; start it with a letter.
    2. Description: Provide a detailed explanation of the type, including its purpose and key fields.
  4. Define the Data Type Schema

    1. Use the Import JSON button in the top-right to paste a sample JSON object from your system.
    2. A schema will be auto-generated based on the JSON structure.
    3. Review and edit fields as needed (e.g., mark required fields or add validations).
    4. The schema is a JSON Schema (draft-07) for one record of the type, and you can’t publish without one. Tool Studio sets the schema’s $schema and $id for you when you save.
  5. Add Resolver Strategies

    1. Resolver strategies convert natural language inputs to custom data type objects. A custom data type needs at least one resolver method before you can publish it. Each method name uses only letters, digits and underscores, can’t start with a digit or contain spaces, and is up to 64 characters. Use snake_case, such as search_by_issue_key.
    2. A single data type can have multiple resolver strategies — for example, a JiraIssue type might have resolvers for searching by issue key, by title, or by assignee. The AI agent picks the best method based on conversation context.
    3. Defining resolvers here makes them reusable — every slot that uses this data type inherits these resolvers automatically.
    4. For details on configuring static and dynamic resolver methods, see Resolver Strategies.
    5. You can also configure resolvers inline on individual slots. See how slot resolvers work for the conceptual overview. Example Use Case: For a JiraIssue type, a resolver might map “this week’s most important bug” to a specific issue object.
    6. Optional: To limit the data each candidate record carries, narrow the dynamic resolver method’s output mapping to the fields you need.

Fix errors when you save or publish a data type

Tool Studio shows these messages when a data type fails one of these checks.

MessageFix
”Invalid name. For data types, name must start with ‘u_’ followed by a capital letter and use PascalCase (e.g., ‘u_MyType’).”Start the name with a letter and use only letters and digits, such as u_SalesforceAccount.
”JSON Schema is required”Add a schema, for example with Import JSON.
”At least one method is required”Add a resolver method to the data type’s resolver strategy.
”Method name is required”Give every resolver method a name.
”Invalid input. Method name must be in snake_case.”Use only letters, digits and underscores, and start with a letter, such as search_by_issue_key.
”Action is required”Select the action a dynamic resolver method calls.
”Display name is required” or “Value is required”Fill in both fields for every option in a static resolver method.