Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Connect Support Chat Response "Canned" Messages

Sharpy
Kilo Contributor

We have a list of "canned" Agent responses to Customers that we would like to make available to Agents.  For example, instead of typing a sentence with 30 words, is there way a way to add these messages to a Chat Response list, and the Agents could respond quickly to a Customer by just typing a short phrase, shortcut key, a number, etc.?

There are typical responses to customers that are used 1,000s of times each day, and this would save from having to type each word from a "canned" response.

This is in addition the "Welcome" and "Goodbye" or "Timed Out" session auto responses.

Thank you!

1 ACCEPTED SOLUTION

Austin tenPas
Kilo Guru

Hey Everyone,

I was recently looking for an answer to this questions that would work in New York but I couldn't find anything on the forums. Later I was able to find a solution so I thought I would go ahead and post it here for anyone else who is looking.

Simply use this script in a Connect Action:

var conv = sn_connect.Conversation.get(conversation.sys_id);

conv.sendMessage({body: "Hello World", field: "comments"});

Here's a link to the related documentation:

https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=conversation-sendMessage_String_String 

View solution in original post

11 REPLIES 11

Also remove the ICON CLASS NAME from icon-new-ticket and test.

Sharpy
Kilo Contributor

Yes I did the 2 above updates.....still not seeing the message on the Customer side of the chat.....Agent side is fine, I can see the Action Message.

Sharpy
Kilo Contributor

I also removed the Condition to be empty/blank, and with the Condition.  The condition I am using is stolen from the OOB Create Case Action.  With and without the Condition clause doesn't help or change anything.

var originalUser = gs.getSession().impersonate("system");	
sn_connect.Conversation.get('SYS_ID of LIVE GROUP PROFILE', 'live_group_profile');
sn_connect.Conversation.sendMessage({
				body: 'Hello'
			});
gs.getSession().impersonate(originalUser);