Voice Command Assistant in ServiceNow

Table of contents

No heading

No headings in the article.

We will be using Web Speech API to convert voice to text in this way we will be able to get a command as text which we will be using to identify the action requested by the user.

We will convert the mention in the article as per UI Macro

https://gouravkajal.medium.com/convert-speech-voice-to-text-using-web-speech-api-in-javascript-ece9804d8deb

We will create a formatter with the developed UI macro and attach it to the form.

Once we are able to convert voice into text then we will use regex patterns to extract get a text from the text string then we will differentiate between actions using the if else condition whether the command is a button click for setting up then we will use Dom manipulation and g_form API to perform the desired action like setting field value and clicking UI Action.