Enable Interactions for a table
Let agents turn an interaction into a record of a new table, with the properties, work type choice and field maps it needs.
Do this when you build an application whose records agents should create from an interaction. When you finish, the new table appears as a work type, and Classify interaction and Set to resolved create its records.
Before you begin
- You need the
administratorrole. The interaction properties also needconfiguration_administrator. - The Interactions application must be installed on the instance.
- Know the target table’s name, not its label. For ITSM requests the name is
ITSMRequest. - Know the role an agent needs to work the new records, for example
hr_agent.
Steps
-
Go to Application → Application → Application properties and select New.
-
Create
interaction.out_of_band_enabled.<table>, with the table name in lower case, for exampleinteraction.out_of_band_enabled.itsmrequest. Set the type to boolean and the value totrueto run Sofi classification when the record is created. -
Create
interaction.role_required_to_action.<table>, again in lower case. Set its value to the name of the role that agents need, such asitsm_agent. -
Go to Application → Field → Available values and add a value to the
InteractionWorkTypegroup for the Interaction table’s Work type field. Set Key to the table name exactly, for exampleITSMRequest. -
Go to Administration → Configuration → Reclassification field map. Open the shipped maps whose Source table is Interaction and use them as a model.
-
Create one map per field that Classify interaction should copy. Set Source table to Interaction, Target table to the new table and leave Unique map empty.
-
Create the maps that Set to resolved should apply, with Unique map set to
FirstContactResolved. Include a map that moves the new record to its resolved or completed status. -
If you want Sofi to classify the new records, create a classifier whose name is the table name, such as
ITSMRequest. A second classifier namedAutoResolve<table>lets Sofi try to resolve them too.
| Property | Shipped for | What it does |
|---|---|---|
interaction.out_of_band_enabled.<table> |
hrcase, incident, itsmrequest |
When true, Sofi classifies the resulting record as soon as it is created, then tries to resolve it with the AutoResolve<table> classifier. |
interaction.role_required_to_action.<table> |
hrcase (hr_agent), incident and itsmrequest (itsm_agent) |
After the record is created, Servicely offers to open it only to users with this role or administrator. |
Result
The new table appears in the Work type list on the interaction form. When an agent selects Classify interaction, Servicely creates a record of the new table, copies the mapped fields and fills Resulting record. With Set to resolved, the record is also resolved and First contact resolved is set.