Saturday, April 18, 2026
banner
Top Selling Multipurpose WP Theme

Do your staff watch for hours on the phone to open an IT ticket? Do they watch for an agent to triage a difficulty, which typically solely requires restarting the pc? Offering wonderful IT help is essential for any group, however legacy techniques have relied closely on human brokers being accessible to consumption studies and triage points. Conversational AI (or chatbots) can assist triage a few of these frequent IT issues and create a ticket for the duties when human help is required. Chatbots rapidly resolve frequent enterprise points, enhance worker experiences, and unencumber brokers’ time to deal with extra advanced issues.

QnABot on AWS is an open supply answer constructed utilizing AWS native providers like Amazon Lex, Amazon OpenSearch Service, AWS Lambda, Amazon Transcribe, and Amazon Polly. QnABot model 5.4+ can be enhanced with generative AI capabilities.

In line with Gartner Magic Quadrant 2023, ServiceNow is among the main IT Service Administration (ITSM) suppliers in the marketplace. ServiceNow’s Incident Administration makes use of workflows to determine, observe, and resolve excessive‑influence IT service incidents.

On this put up, we reveal find out how to combine the QnABot on AWS chatbot answer with ServiceNow. With this integration, customers can chat with QnABot to triage their IT service points and open an incident ticket in ServiceNow in actual time by offering particulars to QnABot.

Watch the next video to see how customers can ask inquiries to an IT service desk chatbot and get solutions. For many ceaselessly requested questions, chatbot solutions can assist resolve the difficulty. When a consumer determines that the solutions offered will not be helpful, they’ll request the creation of a ticket in ServiceNow.

Answer overview

QnABot on AWS is a multi-channel, multi-language chatbot that responds to your buyer’s questions, solutions, and suggestions. QnABot on AWS is a whole answer and might be deployed as a part of your IT Service Desk ticketing workflow. Its distributed structure permits for integrations with different techniques like ServiceNow. If you happen to want to construct your personal chatbot utilizing Amazon Lex or add solely Amazon Lex as a part of your software, check with Combine ServiceNow with Amazon Lex chatbot for ticket processing.

The next diagram illustrates the answer structure.

The workflow consists of the next steps:

  1. A QnABot administrator can configure the questions utilizing the Content material Designer UI delivered by Amazon API Gateway and Amazon Easy Storage Service (Amazon S3).
  2. The Content material Designer Lambda operate saves the enter in OpenSearch Service in a query’s financial institution index.
  3. When QnABot customers ask questions prompting ServiceNow integration, Amazon Lex fetches the questions and requests the consumer to offer an outline of the difficulty. When the outline is offered, it invokes a Lambda operate.
  4. The Lambda operate fetches secrets and techniques from AWS Secrets and techniques Supervisor, the place setting variables are saved, and makes an HTTP name to create a ticket in ServiceNow. The ticket quantity is then returned to the consumer.

When constructing a diagnostic workflow, chances are you’ll require inputs to completely different questions earlier than you possibly can create a ticket in ServiceNow. You should use response bots and the doc chaining capabilities of QnABot to attain this functionality.

Response bots are bots created to elicit a response from customers and retailer them as a part of session variables or as a part of slot values. You should use built-in response bots or create a customized response bot. Response chatbot names should begin with the letters “QNA.”

This answer gives a set of built-in response bots. Check with Configuring the chatbot to ask the questions and use response bots for implementation particulars.

You should use doc chaining to elicit the response and invoke Lambda features. The chaining rule is a JavaScript programming expression used to check the worth of the session attribute set to elicit a response and both route to a different bot or invoke Lambda features. You’ll be able to determine the subsequent query within the doc by figuring out the query ID (QID) specified within the Doc Chaining:Chaining Rule discipline as ‘QID::‘ adopted by the QID worth of the doc. For instance, a rule that evaluates to “QID::Admin001” will chain to merchandise Admin.001.

When utilizing a chaining rule for Lambda, the operate identify should begin with the letters “QNA,” and is specified within the Doc Chaining:Chaining Rule discipline as ‘Lambda::FunctionNameorARN’. All chaining guidelines should be enclosed in a single quote.

Deploy the QnABot answer

Full the next steps to deploy the answer:

  1. Select Launch Answer on the QnABot implementation information to deploy the most recent QnABot template by way of AWS CloudFormation.
  2. Present a reputation for the bot.
  3. Present an electronic mail the place you’ll obtain an electronic mail to reset your password.
  4. Be sure that EnableCognitoLogin is ready to true.
  5. For all different parameters, settle for the defaults (see the implementation information for parameter definitions), and launch the QnABot stack.

This put up makes use of a static webpage hosted on Amazon CloudFront, and the QnABot chatbot is embedded within the web page utilizing the Amazon Lex web UI sample plugin. We additionally present directions for testing this answer utilizing the QnABot shopper web page.

Create a ServiceNow account

This part walks by way of the steps to create a ServiceNow account and ServiceNow developer occasion:

  1. First, sign up for a ServiceNow account.

  1. Go to your electronic mail and make sure this electronic mail handle in your ServiceNow ID.
  2. As a part of the verification, you’ll will probably be requested to offer the six-digit verification code despatched to your electronic mail.
  3. You’ll be able to skip the web page that asks you to arrange two-factor authentication. You’re redirected to the touchdown web page with the ServiceNow Developer program.
  4. Within the Getting Began steps, select Sure, I want a developer oriented IDE.

  1. Select Begin Constructing to arrange an occasion.

When the construct is full, which can take couple of seconds to minutes, you’ll be supplied with the occasion URL, consumer identify, and password particulars. Save this info to make use of in later steps.

  1. Log in to the location utilizing the next URL (present your occasion): https://devXXXXXX.service-now.com/now/nav/ui/traditional/params/goal/change_request_list.do.

Remember to keep logged in to the ServiceNow developer occasion all through the method.

If logged out, use your electronic mail and password to log again in and get up the occasion and forestall hibernation.

  1. Select All within the navigation bar, then select Incidents.

  1. Choose All to take away the entire filters.

All incidents will probably be proven on this web page.

Create customers in ServiceNow and an Amazon Cognito pool

You’ll be able to create an incident utilizing the userid of the chatbot consumer. For that, we have to verify that the userId of the chatbot consumer exists in ServiceNow. First, we create the ServiceNow consumer, then we create a consumer with the identical ID in an Amazon Cognito consumer pool. Amazon Cognito is an AWS service to authenticate shoppers and supply short-term AWS credentials.

  1. Create a ServiceNow user. Remember to embrace a primary identify, final identify, and electronic mail.

Be aware down the consumer ID of the newly created consumer. You will have this when creating an Amazon Cognito consumer in a consumer pool.

  1. On the Amazon Cognito console, select Person swimming pools within the navigation pane.

If in case you have deployed the Amazon Lex net UI plugin, you will notice two consumer pool names; for those who didn’t, you’ll see just one consumer pool identify.

  1. Choose the consumer pool that has your QnABot identify and create a brand new consumer. Use the identical userId as that of the ServiceNow consumer.
  2. In case you are utilizing the Amazon Lex net UI, create a consumer within the acceptable Amazon Cognito consumer pool by following the previous steps.

Be aware that the userId you created will probably be used for the QnABot shopper and Amazon Lex Net UI shopper.

Create a Lambda operate for invoking ServiceNow

On this step, you create a Lambda operate that invokes the ServiceNow API to create a ticket.

  1. On the Lambda console, select Features within the navigation pane.
  2. Select Create operate.

  1. Choose Writer from scratch.
  2. For Operate identify, enter a reputation, similar to qna-ChatBotLambda. (Do not forget that QnABot requires the prefix qna- within the identify.)
  3. For Runtime, select Node.js 18.x.

This Lambda operate creates new position. If you wish to use an present position, you possibly can change the default AWS Identification and Entry Administration (IAM) execution position by deciding on Use present position.

  1. Select Create operate.
  2. After you create the operate, use the inline editor to edit the code for index.js.
  3. Proper-click on index.js and rename it to index.mjs.
  4. Enter the next code, which is pattern code for the operate that you just’re utilizing because the compute layer for our logic:
import AWS from '@aws-sdk/client-secrets-manager';

const incident="incident";
const secret_name = "servicenow/password";

export const handler = async (occasion, context) => {
    console.log('Obtained occasion:',JSON.stringify(occasion, null,2));
    // make async name createticket which creates serviceNow ticket
    await createTicket( occasion).then(response => occasion=response);
    return occasion;
    
};

// async operate to create servicenow ticket
async operate createTicket( occasion){
 
    var password='';
    await getSecretValue().then(response => password=response);
    
    // fetch description and userid from occasion
      var shortDesc =  occasion.req._event.inputTranscript;
    console.log("obtained slots worth", shortDesc);
    // userName of the logged in consumer
    var userName= occasion.req._userInfo.UserName;
    console.log("userId", userName);
    
    console.log("password from secrets and techniques supervisor::", password);
    // description offered by consumer is added to short_description
    var requestData = {
        "short_description": shortDesc,
        "caller_id": userName
      };
      var postData = JSON.stringify(requestData);

    // create url from hostname fetched from envrionment variables. Remaining path is fixed.
    const url = "https://"+course of.env.SERVICENOW_HOST+":443/api/now/desk/"+incident;

    // create incident in servicenow and return occasion with ticket info
    strive {
            await fetch(url,{
                technique: 'POST',
            headers: {
                'Content material-Kind': 'software/json',
                'Settle for': 'software/json',
                'Authorization': 'Primary ' + Buffer.from(course of.env.SERVICENOW_USERNAME + ":" + password).toString('base64'),
                'Content material-Size': Buffer.byteLength(postData),
            },
            'physique': postData
            }).then(response=>response.json())
            .then(knowledge=>{ console.log(knowledge); 
                var ticketNumber = knowledge.end result.quantity;
                var ticketType = knowledge.end result.sys_class_name;
                occasion.res.message="Carried out! I've opened an " + ticketType + " ticket for you in ServiceNow. Your ticket quantity is: " + ticketNumber + ".";
            });  
            return occasion;
        }
        catch (e) {
            console.error(e);
            return 500;
        }

}

// get secret worth from secrets and techniques supervisor
async operate getSecretValue(){
    var secret;
    var shopper = new AWS.SecretsManager({
        area: course of.env.AWS_REGION
    });
   // await to get secret worth
    strive {
        secret = await shopper.getSecretValue({SecretId: secret_name});
    }
    catch (err) {
        console.log("error", err);
    
    }   
   const secretString = JSON.parse(secret.SecretString);
    return secretString.password;
}

This operate makes use of the ServiceNow Incident API. For extra info, check with Create an incident.

  1. Select Deploy to deploy this code to the $LATEST model of the Lambda operate.
  2. On the Configuration tab, within the Surroundings variables part, add the next:
      • Add SERVICENOW_HOST with the worth devXXXXXX.service-now.com.
      • Add SERVICENOW_USERNAME with the worth admin.

  3. Copy the Lambda operate ARN. You will have it at later stage.

The following step is to retailer your ServiceNow consumer identify and password in Secrets and techniques Supervisor.

  1. On the Secrets and techniques Supervisor console, create a brand new secret.
  2. Choose Different sort of secret.
  3. Add your key-value pairs as proven and select Subsequent.

  1. For Secret identify, enter a descriptive identify (for this put up, servicenow/password). If you happen to select a special identify, replace the worth of const secret_name within the Lambda operate code.
  2. Select Subsequent.
  3. Go away Configure rotation on default and select Subsequent.
  4. Evaluation the key info and select Retailer.
  5. Copy the ARN of the newly created secret.

Now let’s give Lambda permissions to Secrets and techniques Supervisor.

  1. On the Lambda operate web page, go to the Configurations tab and navigate to the Permissions part.

  1. Select the execution position identify to open the IAM web page for the position.
  2. Within the following inline coverage, present the ARN of the key you created earlier:
{
	"Model": "2012-10-17",
	"Assertion": [
		{
			"Sid": "SecretsManagerRead",
			"Effect": "Allow",
			"Action": ["secretsmanager:GetResourcePolicy",
				"secretsmanager:GetSecretValue",
				"secretsmanager:DescribeSecret",
				"secretsmanager:ListSecrets",
				"secretsmanager:ListSecretVersionIds"
],
			"Useful resource": "<ARN>"
		}
	]
}

  1. Add the inline coverage to the position.

Configure QnABot configurations

On this part, we first create some data questions utilizing the Questions characteristic of QnABot. We then create a response bot that elicits a response from a consumer once they ask for assist. This bot makes use of doc chaining to name one other bot, and triggers Lambda to create a ServiceNow ticket.

For extra details about utilizing QnABot with generative AI, check with Deploy generative AI self-service query answering utilizing the QnABot on AWS answer powered by Amazon Lex with Amazon Kendra, and Amazon Bedrock.

Create data query 1

Create a data query for putting in software program:

  1. On the AWS CloudFormation console, navigate to the QnABot stack.
  2. On the Outputs tab, and open the hyperlink for ContentDesignerURL.
  3. Log in to the QnABot Content material Designer utilizing admin credentials.
  4. Select Add so as to add a brand new query.
  5. Choose qna.
  6. For Merchandise ID, enter software program.001.
  7. Underneath Questions/Utterances, enter the next:
    a.	Methods to set up a software program 
    b.	Methods to set up developer instruments 
    c.	are you able to give me directions to put in software program 
    

  8. Underneath Reply, enter the next reply:
Putting in from Self Service doesn't require any sort of permissions or admin credentials. It is going to present you software program that's accessible for you, with none further requests.
1. Click on the search icon within the menu on the high. Kind Self Service and press Enter.
2. Sign up along with your safety key credentials.
3. Seek for your required software program within the high proper nook.
4. Click on the Set up button.

  1. Increase the Superior part and enter the identical textual content in Markdown Reply.

  1. Go away the remaining as default, and select Create to save lots of the query.

Create data query 2

Now you create the second data query.

  1. Select Add so as to add a brand new query.
  2. Choose qna.
  3. For Merchandise ID, enter data.001.
  4. Underneath Questions/Utterances, enter Need to be taught extra about Amazon Lex.
  5. Underneath Reply, enter the next reply:
### Amazon Lex
Here's a video of Amazon Lex Introduction <iframe width="580" top="327" src="https://www.youtube.com/embed/Q2yJf4bn5fQ" title="Conversational AI powered by Amazon Lex | Amazon Net Providers" frameborder="0" enable="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
Do you need to be taught extra about it?<br>
Listed here are some assets<br>
1. [Introduction to Amazon Lex](https://discover.skillbuilder.aws/be taught/course/exterior/view/elearning/249/introduction-to-amazon-lex)
2. [Building better bots using Amazon Connect](https://discover.skillbuilder.aws/be taught/course/exterior/view/elearning/481/building-better-bots-using-amazon-connect)
3. [Amazon Lex V2 getting started- Streaming APIs](https://aws.amazon.com/blogs/machine-learning/delivering-natural-conversational-experiences-using-amazon-lex-streaming-apis/)

  1. Increase the Superior part and enter the identical reply below Markdown Reply.

  1. Go away the remaining as default, and select Create to save lots of the query.

Create data query 3

Full the next steps so as to add one other data query:

  1. Select Add so as to add a brand new query.
  2. Choose qna.
  3. For Merchandise ID, enter password.reset.
  4. Underneath Questions/Utterances, enter I have to reset my password.
  5. Underneath Reply, enter the next reply:
#### Password Reset Directions
Please comply with under directions to reset your password
1. Please go to AnyTech's IT net web page. 
2. Use the Password Reset Device on the left hand navigation. 
3. Within the Password Reset Device, present your new password and save. 
4. As soon as you modify your password, please log off of your laptop computer and login.
<br><br>
**Be aware**: In case you are logged out of your laptop, you possibly can ask your supervisor to reset the password.

  1. Increase the Superior part and enter the identical textual content for Markdown Reply.
  2. Select Create to save lots of the query.

Create a response bot

Full the next steps to create the primary response bot, which elicits a response:

  1. Select Add so as to add a brand new query.
  2. Choose qna.
  3. For Merchandise ID, enter ElicitResponse.001.
  4. Underneath Questions/Utterances, enter Please create a ticket.
  5. Underneath Reply, enter the next reply:
Positive, I can assist you with that!! Please give a brief description of your drawback.

  1. Increase the Superior part and navigate to the Elicit Response part.
  2. For Elicit Response: ResponseBot Hook, enter QNAFreeText.
  3. For Elicit Response: Response Session Attribute Namespace, enter short_description.

This creates a slot named short_description that captures the response or description for the incident. This slot makes use of the built-in QNAFreeText, which is used for capturing free textual content.

  1. For Doc Chaining: Chaining Rule, enter QID::merchandise.002. This should be in single quotes. Bear in mind this chaining rule to make use of when creating your doc chain.
  2. Go away the remaining as default.

  1. Select Create to save lots of the query.

Create a doc chain

Now we create a doc chain in QnABot that may set off the Lambda operate to create a ticket and reply with a ticket quantity. Doc chaining permits you to chain two bots based mostly on the rule you configured. Full the next steps:

  1. Select Add so as to add a brand new query.
  2. Choose qna.
  3. For Merchandise ID, enter merchandise.002. This could match the QID worth given within the doc chain rule earlier.
  4. Underneath Questions/Utterances, enter servicenow integration.
  5. Underneath Reply, enter the next reply:
There was an error, please contact system administrator

  1. Within the Superior part, add the Lambda operate ARN for Lambda Hook.

  1. Select Create to save lots of the query.

Take a look at the QnABot

To check the QnABot default shopper, full the next steps:

  1. Select the choices menu within the Content material Designer and select QnABot Shopper.

The QnABot shopper will open in a brand new browser tab.

  1. Log in utilizing the newly created consumer credentials to start the check.

If you happen to plan to make use of the Amazon Lex Net UI on a static web page, comply with these directions.

  1. Select the chat icon on the backside of the web page to begin the chat.
  2. To log in, select Login on the menu.

You may be routed to the login web page.

  1. Present the userId created earlier.
  2. For first-time logins, you’ll be prompted to reset your password.

  1. Now we will check the chatbot with instance use circumstances. For our first use case, we need to find out about Amazon and enter the query “I need to find out about Amazon Lex, are you able to give me some details about it?” QnABot gives a video and a few hyperlinks to assets.

  1. In our subsequent, instance, we have to set up software program on our laptop computer, and ask “Are you able to give me directions to put in software program.” QnABot understands that the consumer is requesting assist putting in software program and gives solutions from the data financial institution. You’ll be able to comply with these directions and set up the software program you want.

  1. Whereas putting in the software program, what for those who locked your password as a consequence of a number of failed login makes an attempt? To request a password reset, you possibly can ask “I have to reset my password.”

  1. You may want further help resetting the password and need to create a ticket. On this case, enter “Please create a ticket.” QnABot asks for an outline of the issue; you possibly can enter “reset password.” QnAbot creates a ticket with the outline offered and gives the ticket quantity as a part of the response.

  1. You’ll be able to confirm the incident ticket was created on the ServiceNow console below Incidents. If the ticket just isn’t proven on the primary web page, seek for the ticket quantity utilizing the search toolbar.

Clear up

To keep away from incurring future prices, delete the assets you created. For directions to uninstall the QnABot answer plugin, check with Uninstall the answer.

Conclusion

Integrating QnABot on AWS with ServiceNow gives an end-to-end answer for automated buyer help. With QnABot’s conversational AI capabilities to know buyer questions and ServiceNow’s strong incident administration options, firms can streamline ticket creation and backbone. You may as well lengthen this answer to indicate a listing of tickets created by the consumer. For extra details about incorporating these strategies into your bots, see QnABot on AWS.


In regards to the Authors

Sujatha Dantuluri is a Senior Options Architect within the US federal civilian crew at AWS. She has over 20 years of expertise supporting business and federal authorities. She works carefully with clients in constructing and architecting mission-critical options. She has additionally contributed to IEEE requirements.

Maia Haile is a Options Architect at Amazon Net Providers based mostly within the Washington, D.C. space. In that position, she helps public sector clients obtain their mission goals with well-architected options on AWS. She has 5 years of expertise spanning nonprofit healthcare, media and leisure, and retail. Her ardour is utilizing AI and ML to assist public sector clients obtain their enterprise and technical objectives.

banner
Top Selling Multipurpose WP Theme

Converter

Top Selling Multipurpose WP Theme

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

banner
Top Selling Multipurpose WP Theme

Leave a Comment

banner
Top Selling Multipurpose WP Theme

Latest

Best selling

22000,00 $
16000,00 $
6500,00 $

Top rated

6500,00 $
22000,00 $
900000,00 $

Products

Knowledge Unleashed
Knowledge Unleashed

Welcome to Ivugangingo!

At Ivugangingo, we're passionate about delivering insightful content that empowers and informs our readers across a spectrum of crucial topics. Whether you're delving into the world of insurance, navigating the complexities of cryptocurrency, or seeking wellness tips in health and fitness, we've got you covered.