Skip to main content
Back to Actions Integrations Use prebuilt ServiceNow action templates to auto-create dialog tasks for managing incidents and requests. To access templates:
  1. Go to Automation AI > Use Cases > Dialogs and click Create a Dialog Task.
  2. Under Integration, select ServiceNow. Integration - Servicenow
  3. If no integration is configured, click Explore Integrations to set one up. See Actions Overview. Explore integrations

Supported Actions

TaskDescriptionMethod
Create an IncidentCreates a new incident in the system.POST
Update an IncidentUpdates the incident details.GET
List All IncidentsRetrieves all incidents from the system.PUT
Find an IncidentSearches all incidents that match a keyword.GET
Delete IncidentDeletes an incident.DELETE
Create a RequestCreates a request in the system.POST
Update a RequestUpdates a request in the system.GET
List All RequestsRetrieves all requests from the system.GET
Find a RequestSearches all requests that match a keyword.GET
Delete RequestDeletes a request.DELETE

Create an Incident

  1. Install the template from ServiceNow Action Templates.
  2. The Create a Incident dialog task is added with the following components: Create an Incident dialog task
    • createIncident – User intent to create an incident.
    • createIncidentShortDescription and createIncidentDescription – Entity nodes for incident details.
    • createIncidentService – Bot action service to create an incident. Click Edit Request: Edit request Sample Request:
      {
        "short_description": "Unable to log in to my mail app",
        "description": "I see an error stating user with this mail id doesn't exist"
      }
      
      Click +Add Response: Add response Sample Response: (truncated)
      {
        "result": {
          "number": "INC0011182",
          "sys_id": "e0f70482478e11105474f088436d4xxx",
          "state": "1",
          "incident_state": "1",
          "short_description": "21-sept-2022",
          "sys_class_name": "incident",
          "category": "inquiry"
        }
      }
      
    • setCallerService – Bot action service to set a caller node.
    • createIncidentMessage – Message node to display responses.
  3. Click Train, then Talk to Bot to test: VA prompts to create an incident
  4. The new incident is created in ServiceNow: New incident created
  5. Click View Incident to see incident details: View incident details

Update an Incident

  1. Install the template from ServiceNow Action Templates.
  2. The Update an Incident dialog task is added with the following components: Update an Incident dialog task added
    • Update Incident – User intent to update an incident.
    • SysId, updateRecordFields, updatedShortDescription, updatedDescription – Entity nodes for update details.
    • prepareUpdatePayloadScript – Bot action script to update an incident. prepareUpdatePayloadScript bot action component properties
    • updateIncidentService – Bot action service to update an incident. updateIncidentService bot action component properties
    • updateIncidentMessage – Message node to display responses.
  3. Click Train, then Talk to Bot to test: VA prompts to update incident
  4. Enter all incident update details when prompted. The incident is updated in ServiceNow: Incident updated

List All Incidents

  1. Install the template from ServiceNow Action Templates.
  2. The List All Incidents dialog task is added with the following components: List All Incidents dialog task added
    • List All Incidents – User intent to list all incidents.
    • listAllIncidentsService – Bot action service to fetch all incidents. Click +Add Response: Add response
    • listAllIncidentsMessage – Message node to display responses.
  3. Click Train, then Talk to Bot to test: VA prompt to view all incidents

Find an Incident

  1. Install the template from ServiceNow Action Templates.
  2. The Find an Incident dialog task is added with the following components: Find an Incident dialog task added
    • Find Incident – User intent to find an incident.
    • findRecordFields, findRecordSysId, findRecordNumber, findShortDescription, findDescription – Entity nodes for finding an incident.
    • prepareSearchingFieldScript – Bot action script to prepare search fields. prepareSearchingFieldScript bot action component properties
    • findSearchingFieldScript – Bot action service to search incidents.
    • findIncidentMessage – Message node to display responses.
  3. Click Train, then Talk to Bot to test: VA prompt to view an incident

Delete an Incident

  1. Install the template from ServiceNow Action Templates.
  2. The Delete an Incident dialog task is added with the following components: Delete an Incident dialog task added
    • Delete Incident – User intent to delete an incident.
    • SysId – Entity node for the incident ID.
    • deleteIncidentService – Bot action service to delete an incident.
    • deleteIncidentMessage – Message node to display responses.
  3. Click Train, then Talk to Bot to test: VA prompt to delete an incident
If you enter an incorrect ID, the 404 – No Record Found error message is displayed.

Create a Request

  1. Install the template from ServiceNow Action Templates.
  2. The Create Request dialog task is added with the following components: Create Request dialog task added
    • Create Request – User intent to create a request.
    • createRequestShortDescription and createRequestDescription – Entity nodes for request details.
    • createRequestService – Bot action service to create a request. Click Edit Request: Edit Request Sample Request:
      {
        "short_description": "Need a new device",
        "description": "old one not working"
      }
      
    • createRequestMessage – Message node to display responses.
  3. Click Train, then Talk to Bot to test: VA prompt to create new request
  4. Click View Request to see request details in ServiceNow: View request

Update a Request

  1. Install the template from ServiceNow Action Templates.
  2. The Update a Request dialog task is added with the following components: Update a Request dialog task added
    • Update Request – User intent to update a request.
    • SysId, updateRecordFields, updatedShortDescription, updatedDescription – Entity nodes for update details.
    • prepareUpdatePayloadScript – Bot action script to update a request.
    • updateRequestService – Bot action service to update a request. updateRequestScript bot action component properties
    • updateRequestMessage – Message node to display responses.
  3. Click Talk to Bot and follow the prompts to update a request.

List All Requests

  1. Install the template from ServiceNow Action Templates.
  2. The List All Requests dialog task is added with the following components: List All Requests dialog task added
    • List All Requests – User intent to list all requests.
    • listAllRequestsService – Bot action service to fetch all requests. listAllRequestService bot action component properties
    • listAllRequestsMessage – Message node to display responses.
  3. Click Talk to Bot and follow the prompts to view all requests.

Find a Request

  1. Install the template from ServiceNow Action Templates.
  2. The Find a Request dialog task is added with the following components: Find a Request dialog task added
    • Find Request – User intent to find a request.
    • findRecordFields, findRecordSysId, findRecordNumber, findShortDescription, findDescription – Entity nodes for finding a request.
    • prepareSearchingFieldScript – Bot action script to prepare search fields.
    • findRequestService – Bot action service to search requests. findRequestService bot action component properties
    • findRequestMessage – Message node to display responses.
  3. Click Talk to Bot and follow the prompts to find a request.

Delete a Request

  1. Install the template from ServiceNow Action Templates.
  2. The Delete a Request dialog task is added with the following components: Delete a Request dialog task added
    • Delete Request – User intent to delete a request.
    • SysId – Entity node for the request ID.
    • deleteRequestService – Bot action service to delete a request. deleteRequestService bot action component properties
    • deleteRequestMessage – Message node to display responses.
  3. Click Talk to Bot and follow the prompts to delete a request.
If you enter an incorrect ID, the 404 – No Record Found error message is displayed.