Skip to main content

How to post to slack any data programmatically from Gainsight (Rules Engine and JO)


rakesh
Forum|alt.badge.img+1
  • Lets put your data to work!
  • 835 replies

 

This video shows how to post any message to Slack from Rules Engine (or JO) leveraging External Actions in Gainsight. We use 2 methods that Slack has to do this:

  1. Webhook (first half of the video)
  2. OAuth authentication (2nd half of the video)
Did you find this topic helpful?

16 replies

phani_kumar
Forum|alt.badge.img+3
  • Gainsight Employee ⭐️⭐️
  • 332 replies
  • September 8, 2020

Hi @rakesh 

Super helpful Thanks for the detailed information. And recently I tried this external action and it worked well.

And I documented all the steps as well. Below is the link where we can see each and every step.

Thanks.


sai_ram
Forum|alt.badge.img+1
  • Expert ⭐️⭐️
  • 3727 replies
  • November 6, 2020

Useful info bumping this to the top!!


smathew4
  • Contributor ⭐️⭐️⭐️⭐️
  • 28 replies
  • May 25, 2021

@phani_kumar 

question for you, if the query returns multiple results, how will these post to slack? will each result post as it’s own slack message, or will they all post as 1 message?

i have a use-case where i want Timeline Activities of a specific type to get pushed to a Slack channel for broader collaboration and discussion. but i would like each Activity that meets the criteria to be it’s own Slack post, not grouped together.

thanks!


phani_kumar
Forum|alt.badge.img+3
  • Gainsight Employee ⭐️⭐️
  • 332 replies
  • May 25, 2021

Hi @smathew4 

Of course, it will process each record as a new slack message, but everything depends on your source data how you setup.


smathew4
  • Contributor ⭐️⭐️⭐️⭐️
  • 28 replies
  • June 16, 2021

@phani_kumar 

I am trying to create the JSON here, can you help me out? I am using Output Header value as the merge field from Rules Engine, but having trouble otherwise. Pasting my current JSON below. This won’t save in GS because of “Please enter valid JSON and char limit should not exceed 10,000” error

{
"text": 
*<https://kcura.lightning.force.com/{!recordId.Id}|{!fNumber}>*

*Account:* {Account_Id_Name}

*Created by:* {GS_Created_By_User_ID_Name}

*Subject:* {Subject}

*Ticket:* {Ticket_Number}

*Experience Sentiment:* {Experience_Sentiment}

*Experience Complaint:* {Support_Experience_Complaint}
{Product_Experience_Complaint}
*Feedback Ask:* {Feedback_Ask}


*Notes:* {Notes}
"channel": "temp-test-gainsight-efl"
}

 


phani_kumar
Forum|alt.badge.img+3
  • Gainsight Employee ⭐️⭐️
  • 332 replies
  • June 17, 2021

Hi @smathew4 

Below is the format of how the Payload should be created in Gainsight External Actions.

It should be 2 open({{) and 2 close(}}) parenthesis like below.

{
	"blocks": [
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "*Account:* {{Account_Id_Name}}

                         *Created by:* {{GS_Created_By_User_ID_Name}}

                         *Subject:* {{Subject}}

                         *Ticket:* {{Ticket_Number}}"
			}
		}
	]
}



Hope this helps

Thanks


smathew4
  • Contributor ⭐️⭐️⭐️⭐️
  • 28 replies
  • June 17, 2021

@phani_kumar 

I actually got it to work with the below payload. What do the blocks and types parameters do?

 

{"text":"New Experience Feedback: 

 *Company Name* : {{Name}},
 *Created by*: {{Created}},
 *Subject*: {{Subject}},
 *Ticket Number*: {{Ticket}},
 *Experience Sentiment*: {{Sentiment}},
 *Experience Complaint*: {{Support}} - {{Product}},
 *Feedback Ask*: {{Feedback}},

 *Notes*: {{Notes}}","channel": "temp-test-gainsight-efl"}

 


  • Contributor ⭐️⭐️⭐️
  • 21 replies
  • May 5, 2023

Is there a similar video for this now that Connectors 2.0 has replaced External Actions?


achandak
Forum|alt.badge.img+4
  • Helper ⭐️
  • 12 replies
  • May 8, 2023

@billrlarseniii 

There’s no connector method available which directly post messages to Slack channels. The steps shared in the Video are still good.


  • Contributor ⭐️⭐️⭐️
  • 21 replies
  • May 8, 2023

I don’t seem to have this option available to me. The only thing on the External Actions page for me is a link to Connectors 2.0.

 


achandak
Forum|alt.badge.img+4
  • Helper ⭐️
  • 12 replies
  • May 8, 2023

@billrlarseniii You are getting “No Connections Available” message because there’s no connection to an external application like Slack is available under Connectors 2.0 in your instance.

 

You can either click on the button “Go to Connectors 2.0” or navigate to “Connectors 2.0” from admin console and land on the Connectors 2.0 page, where you can create a custom connection to an external system by following the steps mentioned in this article.

 

After you have the custom connection created, you will see that on the left side of the External Actions page.

 

Incase you need more understanding you can follow the instructions shared in the above video.


Revant_Amingad
Forum|alt.badge.img+7
  • Contributor ⭐️⭐️⭐️⭐️
  • 33 replies
  • May 11, 2023

Check out THIS recording from Crank Up Technicalities Webinar Series that brings such technical operational conversations to a wider platform to help the CS & CS Ops community easily get the best & most ROI from your Gainsight Architecture.

 

The attached recording not only shows you how you can send real time NPS into slack as messages but also some advanced tips on the #JourneyOrchestrator.

 

FYI @billrlarseniii - I hope the attached recording helps you. :)


mightylud
Forum|alt.badge.img+5
  • Contributor ⭐️
  • 1 reply
  • July 26, 2023

Sorry if i might’ve missed this but i’m looking to see if anyone has found a way to post links from gainsight to the slack app?
I have been able to post messages with fields to the internal slack but now trying to post links. Examples would be, Company Name - clickable link to the C360 or Timeline Entry Subject directly to the Timeline Entry.
Anyone tried or better yet, succeed at this?


sarahmiracle
Forum|alt.badge.img+10
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • 354 replies
  • June 28, 2024

Is there any way to make the post to slack real-time?


rakesh
Forum|alt.badge.img+1
  • Author
  • Lets put your data to work!
  • 835 replies
  • July 9, 2024
sarahmiracle wrote:

Is there any way to make the post to slack real-time?

From Gainsight, there are only few categories of events that are Real Time - Company / Relationship updates and Cockpit updates for now @sarahmiracle . So for these we can post to Slack real time via Real Time rules, else, its a regular Rule.


sarahmiracle
Forum|alt.badge.img+10
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • 354 replies
  • July 9, 2024

@rakesh thanks for the reply! Real Time Rules would be great, if I could fetch from Activity Timeline for my real time rule :( Unfortunately can only make Real Time Rules off of specific objectives, Activity Timeline not being one of them! A good enhancement idea for Real Time Rules


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings