Automate Sales Wins and Account Channels in Slack (Full Transcript)
[00:00:00] Speaker 1: It's time to start automating things. Watch this. Welcome back to Slack School. My name is Mike Reynolds. I'm your host. I'm part of the Slack team here at Salesforce. And today we're going to dive into part two of our mini series about Sales Cloud for Slack. In this episode, we are going to automate a couple of different things that are pretty common things that you're probably already automating, but we're going to show how to surface those inside of Slack. So it's going to be pretty cool. Make sure you follow along in your own developer edition. Let's get after it. Let's get started in our sales wins channel. So we created this channel in the last episode. Now we want to put it to good use. What would be terrible is if people had to go out and post that they had won something that was a big deal or something that was important. We want to automate that. Now, if we were doing this all in Salesforce, that means building a flow. That means doing some other things. We've actually got a tool right inside of Slack that'll let us do all of this using workflow. So here's what we're going to do. There's a lot of different ways you can navigate to get here today. I'm going to use this agents and tools button. So I'm going to click on that and then choose workflows. So here we don't have any workflows yet. It's brand new workspace. I could click this button here. I don't know. I prefer this button over here. So we're going to say new build workflow. So this workflow is going to alert people that a deal of a certain size has closed one. So we first need to choose an event in Slack. When we automate things, we have events and steps events. What happened? Steps are the things we do because the event happened. So we're going to start off by choosing an event. I want to specifically look at events in Salesforce. There are all these connected applications. This is just what comes with your sandbox. There are thousands of connected applications, but we're going to focus on Salesforce today and specifically when a record changes. So I'm going to click on this. Fortunately for us, we used auto Slack, which means I have one Salesforce organization and I'm focused on big deals here. So I'm going to look at the opportunity object and if I were going to automate this in Salesforce, I would be looking at things like, okay, well, is the amount over a certain dollar amount and is there's a, if you've been automating things in Salesforce world for a while in sales cloud, you know about the Boolean fields we have closed and one here. I just want to see that one was changed to true and maybe the amount is over a certain amount. So let's, uh, let's do that. We'll say when amount, um, how about is greater than 100,000, uh, and then we'll make an and, so I'm just going to add a new condition and we have the field one. So I'll say one, uh, Ooh, and I've got these nice operators here. I'm going to say, um, was previously equal to a false, right? So that means that it used to be false, that this thing was one, but now it's true. So that means that actually, whatever the case, now I know that we've won this deal and the amount is over a hundred thousand. So this is all I need to do for this. I'm going to click continue. All right, so now I want to do something. Well, we're going to make a, a post in that sales wins channel. So I'm going to click add steps and I have a, uh, an option here for send a message in a channel. So I'll choose that. I want to specifically choose that sales wins channel and the message can be pretty simple. How about that? Let's check out this new closed one deal. Now we have a trick in our back pocket that I think we should use. I'm going to highlight the word this, and I'm going to make it a link by clicking this button here. And what I could do is open up Salesforce, copy the URL. I could find the, the ID of the record and I could put it in there, but we can actually go one better. I can go over here and insert a variable. Now Slack, because we're connected to Salesforce, we're kind of all the same system here. We're running on different platforms, but we're very connected. We can use what we get from Salesforce right here in Slack. So for example, I have all this merge data and I could look up facts about the account. You know, if I wanted to list the account name on the deal, I could, if I wanted to look up any of this related data, I, or get fields from the opportunity itself. I could pull that in and make it part of my message if I wanted to have a big complicated message. But in this case, I want to keep things simple. And I'm just going to choose opportunity record link. Now the opportunity record link is actually safe. No matter which environment I migrate to, that's always going to be good. So you know, we don't hard code URLs in a sandbox, same type of thing here. The opportunity record link is safely going to travel and migrate through environments with me. So I'm just going to leave it like that and I'm going to save this. Now this is good. We can actually go ahead and publish it. I'm going to finish it up. Always got to give it a good title here. I'm going to call this just sales wins. We'll give it a good description. And I'm going to say to publish. And we'll say done there. Now I'm going to go ahead and kick off a test. I'm going to go to this Acme account that I created in the last episode. And I'll go to account details. And over here, I've got an opportunities related list, I'm going to open that up. And naturally, this account doesn't have any opportunities yet. But we can go ahead and create one. Now the amount I do need it to be over 100,000. So that should be over 100,000. We're going to say that this closed today. We have to give it a staged. I'm going to say close one. And I'm going to leave the rest of this blank. And it's saved that opportunity. Great. So that was a big opportunity. People should know about that. So here's the deal. Whenever we make changes in Slack, we're going to send that data over to Salesforce. That data saved immediately and I got a notification saying it was saved and I could go back and open the record and I could do all that right here from Slack. But the automation that we have, it's going to take it a minute to jump back here into Slack from Salesforce because it's asynchronous communication. That means when system resources are available, depending on the time of day and all the different things that you have going on in your environment, that could be anywhere from let's say 60 seconds all the way out to a few minutes, sandboxes never go as fast as prod. So for now we're going to move on, but we'll come back to that. There's another piece of automation that we can create and we'll do something very similar to what we just did. So this time to create the workflow, I'm actually going to click on the plus over here where it says create new, and I'm going to choose workflow. Now this time, what we're going to do is if a new account is created and the account rating is hot, that style of account, I always want to create a Salesforce channel for. Now again, if I were starting this process in Salesforce, inevitably I'd be creating a flow with some asynchronous stuff to go send all what I need into Slack, but we can start it all from here and I think it's going to be a little bit easier. So again, we'll choose an event. I'm going to go with the Salesforce event again, when a record changes. Again I'm going to choose my organization. Now my object this time, it's going to be account, right? When a new hot account is created, right? This is probably come from a hot lead that was converted into an account. So what I'm going to do is I'm going to say when the accounts rating is equal to hot, and I'll say is newly created, right? That's a really cool operator we have. So I know this is going to be a net new record where rating is hot, okay? So we'll go ahead and continue. Now the first thing I want to do is I want to go and create a record channel for our new account. So my ad steps again, over here in the side, I've got some Salesforce steps and here I've got an option for create a Salesforce channel. And that's what I want to use to create everything. So here I could just take, I've got variables again, because we know we have the data from Salesforce. So I'll use the account ID from my account and I'll create a Salesforce channel for it. Now, as soon as I create the Salesforce channel, it's actually going to be visible in Salesforce immediately. As soon as I create it, we auto created the channel, which is really pretty great, but I think we do want to add some people to this channel. Yeah. Just having a channel with no one in it isn't quite good enough. So I'm going to use this suggested step of add people to a channel and here Slack really tries to make things easy for us whenever it can. So I can see here when I open this from step one, I'll close this so you can see what I mean. This was step one where I created that channel. When I open this, it's showing me, Hey, from step one, did you want the channel that we just created? Yes, I do. Thank you Slack. So we'll say for this channel, the one that we just created, I want you to add some people. Now I don't necessarily always want to add the exact same person. So I'm going to need a variable here as well. And what I've got with the account is I could add the account owner, which that's pretty handy. For now, that's all we'll do. In theory, if you're using account teams, you might need to actually look up all the members of your account team and then add them all in here. That I probably would do with a flow. So you could also add user groups if I wanted to add all my sales leaders or anything else in here, be our support, whatever the case may be, I would have the opportunity to do that here. So I'm going to click save. And again, this is going to be good enough. So this means when I go create that account, the Salesforce channels automatically going to get created and I'm going to add my account owner directly into it. So my account owner is set up for success. So we'll go ahead and finish this up. We'll call this account channel creator. Always a good description. And we'll go ahead and publish. That's two pieces of automation pretty fast. Just like that, our test is ready. I can see that I have an unread message here in the sales wins. If I go and click on this, I can see my message and it worked out just fine. So here, this is my actual message. Check out this newly closed one deal. And this is a link right into my record, but we got what's called a card. So this thing right here is, is a card. So it's Slack unfurled the URL because we knew what that URL was. So in this example, Slack actually said, Hey, Mike is the running user. I've got a Salesforce URL here, Salesforce, does Mike have access to this record? And if so, what data points and at what level Slack then gives me this card, I just get it. I didn't have to do anything to configure it. I just got it. Now in a couple episodes, we'll edit this. You can actually tune this card up and change the layout a little bit, but right now I get all this functionality essentially for free right out of the box. If I click on this, it's going to open up my record over here on the side. I can view my related lists or any quick actions that I might have that are associated with this type of record and my type of user. And if I wanted to create a channel just for this opportunity, which at this point I probably wouldn't, it's a closed deal, but I could do that just by clicking here, but I can, right now I can, I can read everything. And if there were open conversations about this, I would see all of those right here. Naturally the only one that I can see right now is the post in the Close Wins channel. And it is related to Acme, right? This was an opportunity that I put on the Acme account. And so Slack is showing me all of that. So if I did need to follow up with the account or with anybody, if I had any questions, it would be really easy for me to do that right from here. Well there you have it. We just went over two examples of how we can automate things right out of Slack. I didn't even need to open Salesforce to be able to begin automating my business flow so that everybody's able to see what they need and take action right out of Slack. And that's pretty cool. In the next episode, we're going to take a look at how I can begin to use AI to even improve on this process a little bit. Don't forget to like and subscribe and say hi in the Slack community at slackcommunity.com. Jump into the Slack School channel, let me know how it's going for you, or ask me any questions you've got. I'd be happy to answer. We'll see you next time. Oh hey, you're doing great. You have a 4K video of me waiting.
- Use Slack Workflow Builder and the Salesforce 'When a record changes' event to trigger automations from Salesforce data.
- A sales-win notification can be triggered when an Opportunity amount is greater than $100,000 and the Won field changes from false to true.
- Insert the dynamic Opportunity record link variable rather than hard-coding a Salesforce URL, so the workflow remains portable across environments.
- Slack automatically unfurls Salesforce record URLs into cards that expose relevant record details, related information, and available actions based on user access.
- Create a Salesforce channel automatically for newly created Hot Accounts, then add the Account Owner dynamically.
- Salesforce-to-Slack trigger processing is asynchronous and may take about 60 seconds to several minutes, with sandbox environments often slower than production.