...
The following are the key steps in creating the ticket in ISM by a Support Agent for an end-user:a Skill for attachment support.
Table of Contents |
---|
Define Attribute
Create an attribute Attachment to get the invoice/bill from the end-user on the channel.
On Skill Builder--> Attribute tab, click on Create Attribute.
Add attribute details with Name as Attachment and Data type as FILE.
Set the prompt message to be displayed to the end-user, like “Please attach your bill here“
Click Save.
Follow the above steps and create the below attributes:
‘InvoiceID’ to store the unique ID number in the bill.
‘Date’ to store the invoice date in the bill.
‘Amount’ to store the total billed amount in the invoice.
‘Confirmation’ to display the values of InvoiceID, Date, and Amountget confirmation from the user that the data received from OCR is correct. Set the prompt type to Quick Reply. Provide Yes and No as options.
Create an Integration
Define Integration to OCR with the “OCR REST API - OCR recognition” operation.
On the tenant menu, click on Integration.
Create an Application with the integration type as REST.
Add an instance to the OCR environment.
Configure the ‘OCR REST API - OCR recognition’ Operation. Pass Attachment attribute to the Operation
Set the Global Header content type to multipart/form-data.
In Outbound payload attachment mapping, set the external field to attribute Attachment.
Fetch the invoice details received as a response from the web service.
Assign the value obtained for Set invoice id to the ‘InvoiceID’ attribute.Assign the
value obtained for the Set date to the ‘Date’ attribute.
Assign the Set value obtained for of the amount to the ‘Amount’ attribute.
Follow the above steps and create the following integrations:
Define the operation ‘Create Service Request.' Override the Integration and pass the value in the “InvoiceID”, ”Date”, “Amount” attributes to the operation. Fetch the ticket number received as a response from the web service and save it in a local attribute TicketNumber. You may also use the Operation created in the Analyst creating the ticket in ISM from Agent Chat Console and override it during Skill creation.
Build a Skill
On Skill Builder--> Create Skilltab, enter Skill details such as Skill Name, Category, Description, and KPI Metrics
Under Invocation type, add User Phrases such as ‘Reimburse my bill,’ ‘Refund my bill details’
Under Conversation flow,
Add the attribute “Attachment” to upload the bill.
Add the Integration operation OCR REST API - OCR recognition to get the Invoice Details associated with the attachment.
Add “Confirmation” attribute and add the message to attribute message to display the values associated with attribute . For example, “The values are Invoice ID:123456 Date:11/12/2020 Amount: 500”to get confirmation from the user that the data received from the OCR integration is correct.
Add a Ruleset to let get confirmation from the user decide if the obtained values are correct. Configure the following rules.
If bill information displayed to the user is as expectedthat the data received from OCR is correct
If confirmation from the user is Yes, continue with the next steps.
If bill information displayed to confirmation from the user is improper, prompt the user that the details are incorrect and exit No, display a message There is an Error and Exit the skill.
Add the Integration operation Create Service Request to send the values in the . If are using an existing operation, Override the operation to pass “InvoiceID”, ”Date”, “Amount” attributes to ISM and Attachment attributes to the Operation. Fetch the ticket number received as a response from the web service and save it in a local attribute TicketNumber.
Add Information Message to display ticket submission confirmation message to the end-user. For example, “Creating a ticket in ISM with Invoice details is completed for the user”.Set the success message to be displayed on successful form submission. Use the local attribute TicketNumber to show the logged ticket number to theuser.For example; “Created “Created the ticket @{local.ticketIdentifier} with the TicketNumber in ISM for the submitted invoice“.
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 the Virtual Agent.
Once the skill is Published, Go to the Test Widget to test the skill. Click on Debug Logsand execute the skill to view the runtime Skill execution logs.
...