Luma Virtual Agent can integrate with external applications to retrieve data or perform actions in the target system. Using a web service, the Virtual Agent can integrate to with an external application that can be used in Skills to perform user requests.
...
Define the Prompt/Attribute named 'Description' to accept details of the issue from the end-user:
On Skill Builder--> Attribute tab, click on Create Attribute.
Add attribute details such as Name and Data type.
Set the prompt message to be displayed to the end-user, like “Enter issue details, “Enter Description. “
Click Save.
Define the Integration to ISM with the “Create Incident” operation.
On the tenant menu, click on Integration.
Create an Application with the integration type as REST.
Add an instance to the ISM environment.
Configure the ‘Create Incident’ Operation.
Fetch the ticket number received as a response from the web service and save it in a local attribute TicketNumber.
Build the skill
On Skill Builder, click on the Create Skill.
Add Skill details such as Name, Category, and Description.
On the Invocation Type, select “User Phrase“ and add the Phrases that can be used to trigger the skill, such as “Log a ticket in ISM,” Create a ticket,” “Log incident,” etc.
On Conversation Flow,
Add Attribute “Description.”
Add Web Service operation “Create Incident. “
Add Information Message to be displayed to the end-user. Use the local attribute, (that has been defined in Step 2) TicketNumber, to display the ticket number to the end-user in the information message. For example: “Incident @{local.TicketNumber} has been created in ISM. ”.
Click Save to finish building the skill.
The next step is to add permission to the skill. Click on Permission and the Users or Groups who should be able to execute the Skill.
Run Build and Publish to make the skill available in Virtual Agent.
Once the skill is Published, Go to the Test Widget to test the skill. Click on Debug Logs and execute the skill to view the runtime Skill execution logs.
Your skill is now ready to use. Go to Conversation History to view the list of conversations where the end-user requests the skill.Note: 1. Skill is available only after the Build and Publish process is completed.
2. Permissions should be given to the Users to Groups in order to execute the Skill.
Additional Resources:
Visit the below Wiki Documentation for more information on:
...
Build a Skill to create a Service Request in ISM. Create an attribute to accept the request details and configure an operation to Create a Service request in ISM. Use the Attribute and Operation in your skill and display the Service Request number received in a bot message.
Build a Skill to view recent work logs for your ticket. Create an attribute to accept the ticket number, configure the operation, and pass the ticket number to the web service. Display the worklog received as the web service response. Configure a rule set to handle errors such as ticket not found, No worklog found, incorrect ticket number, etc.
Build a Skill to connect to AccuWeather REST API to get current weather information of a city. Refer to the below link for details on the API:
https://developer.accuweather.com/accuweather-forecast-api/apis