Module 11 - Add ServiceNow Update Incident Tool to Agent Loop
In this module we will take the ServiceNow Update Incident workflow and add it as a tool in our Agent Loop workflow.
-
Return to the list of workflows in the Logic Apps by clicking on the Workflows link at the top of the page
-
Open the
demo-conversational-agent
workflow -
Add a new tool.
-
Click on the
+
-
-
Search and select the
Call workflow in this logic app
-
Configure the Call workflow in this logic app action
- Rename activity to
tool-update-servicenow-incident
- Workflow Name -
tool-ServiceNow-UpdateIncident
- Rename activity to
-
Configure the Tool activity
-
Rename the tool to
Update Service Now Incident
-
Description:
This tool will update a ServiceNow Incident
-
Agent Parameters
for each agent parameter click
+ Create Parameter
-
Name:
Notes
Type:
String
Description:
Notes to be added to the incident
-
Name:
Ticket Number
Type:
String
Description:
The ServiceNow TIcket Number
-
-
-
Configure the inputs paremeters for the call to the logic app.
- TicketNumber:
@{agentParameters('Ticket Number')}
- Notes:
@{agentParameters('Notes')}
- TicketNumber:
-
Save you workflow
Test your agent
-
Click
Run
to start your workflow and initiate the agent session.You will receive a notification when the workflow as successfully started
-
Navigate to you Run History and located you Running instance. Click on the identifier to view the executed steps and agent chat session.
-
Enter the your issue for the agent to action:
In this session we will:
- Ask the agent to help coordinate the resolution for their issue
- The agent will
- retireve the Operation Run and find the corresponding entry
- will log the incident in ServiceNow
- We provide updates on our progress of the Incident
- The agent will
-
Update work notes in ServiceNow
-
-
Enter the following prompt to have the agent log the incident
my database mysqldev001 appears to be offline
(note the agent may prompt you for the assignment group or the date the incident occured.)
-
Enter the following prompt to have the agent update the ticket with the work notes.
Database team has provided an update that the database has been rebooted and functionality should be restored in 15 mins
(note the agent has leveraged the Update ServiceNow Incident Tool to update our Incident with the work notes)
-
Vaidate your Incident in ServiceNow.
-
Navigate to your ServiceNow developer portal
-
Use the Incident Ticket Number from the Agent's response to search for the incident in ServiceNow
-
Note the update has been captured in the work notes for the incident.