From Snowflake Data to Sigma AI Apps: Building a Sales Pipeline Analyzer

Transcript
Well again welcome everyone to this webinar on how to connect Snowflake to your Sigma AI apps and how to make your business processes a lot more manageable. And today we have two parts, at least two technical parts. One will be me showing you what needs to be set up in Snowflake, secondly what lives in Sigma, and maybe also discuss how this works in general. And for the use case today we have, let's say, customer retention or sales pipeline. So how can customer conversations become useful risk signals for the sales team and then support a practical business workflow? As Vicky mentioned, put your questions in the chat. I'm keen to leave the final part, like at least the last ten minutes for the actual Q and A. But Steve, if there are burning questions, feel free to interrupt and we can go deeper. All right, so let's look at your hosts for today. So myself, Darinka Markovic, I work as an analyst consultant with InterWorks. Been here for about five years, usually working on the BI end of spectrum. So how plans implement these technologies, how does it work for them? And I'm today with my colleague Steve. Would you like to say hi? Yeah, sure. Hi, I'm Steve, I'm a principal consultant with InterWorks working across all of the data pipeline and BI space. And I'm gonna leave a lot of this, well, the whole conversation to Darinka because she knows what she's doing. All good. Thank you, Steve. So again, any questions in the chat, Steve will alert me and then we can handle that. Good. So let's look at the next step. So I mentioned sales teams, and if of course every company should have a sales team, so you imagine what happens a lot of the times is that they leave a lot of notes, meeting notes after calls, any kind of internal notes as well, but all of these qualitative info's do not always get revisited unfortunately, and it's usually that many risk signals are hidden in these, let's say qualitative semifores or play text, and they can get buried. So maybe a colleague mentioned something to you, you were having a call with a stakeholder, they were mentioning a potential restructuring of the company, a deal can still look healthy in the pipeline, but there are some of these smaller risks or latest conversations that actually change the direction of this story. So we want to find out today where this risk actually lies and how can we kind of highlight it or show it earlier than it usually pops up, right? Usually later when a deal is lost, you notice there was a risk, we should have thought about it earlier. So let's see how this can look like. As I mentioned, this is a lot of qualitative info, so you will always have a trail of these conversations. I put here a couple examples, so part of those meeting notes you would have like many email threads discussing things with your customers, so maybe they have pricing objections, some security questions as well, shifting timelines on their project team, and these other qualitative in force could be also sales calls. So maybe you learn from a stakeholder, you know, will have a champion changes like this person will be not be with the company in soon future. They might mention a competitor to your company and kind of those budget hesitation as well. Something that's said out loud, right, but never logged somewhere as an actual risk, or even if you're logging it, it's a lot of manual work for your sales team. And as I mentioned, the example with meeting notes, So you have your next steps, decision makers, but this gets lost somewhere along the way, even if you're really, really very organised about it. So let's see how this could look like. These risk signals, something that's never flagged. I have a couple of quotes here or examples here on the top left. One could be the budget was frozen for restructuring, so the deal will not come through this year and there's a lot of waiting time. We're not sure why, what's happening. The champion leaving the company that I mentioned, or something that was marked as on track but it's not really happening. So again these are all of the kinds of signals that we want to surface while there's still time to respond and of course not after the factin later. And I will pause here on this kind of quote, so what if every conversation could be read, understood and acted on automatically, maybe underline that word automatically, meaning that what if we had technologies or tools that kind of log these risks for us, but also have automated workflows based on those flagged risks. And this is what we are exploring today. I will use I think it's just a sample or synthetic, sample data to demonstrate the workflow, but I'm sure this can work in many business workflows. So for example, customer retention or product development. For example, I'm not sure, maybe you're a software developer, app developer, and you would like reviews, how people are finding your product, anything like that that needs to be flagged or put up for discussion. So here from left to right, how are we moving from buried qualitative info, from buried text to business action? So what do we have as the before stage? All of the valuable information sits in your CRM systems, in your kind of unnatural cloud repositories, unread emails, and just because we're all humans we cannot get all of the things and risk is discovered maybe rather later than earlier, and also escalation, right, depending on the hurricane of company or internal processes. It depends also on that someone flagging the risk and escalating it further, which does not always happen. So this is how the before state is, and I'm pretty sure for many of the companies today how it looks like, but today we're going to walk through the after stage, right? So we will use AI to classify and extract those risk signals in an automatic manner, and we'll have a cortex agent from Snowflake deciding what needs attention, kind of writing it as a column in that table, and then as these records are written, we'll have this automation part. An email will be fired off to my inbox and I will have a Sigma dashboard update instantly based on that. Well, maybe not instantly I will have a sequence of actions that need to happen, so with my approve step you could put it as instantly, but definitely something more automated than what we have usually right here on the left. Good, then let me go to my. Figma workbook just quickly for you to show what the dashboard looks like. Not actually dashboard, this is the app that I was mentioning from the beginning. And just before we go under the covers, a quick preview of where we're heading, what the business process should look like for everyone. So as sales manager, imagine I'm a sales manager and looking at my pipeline, the... A couple of KPIs here at top, the total pipeline I have, how many deals at risk, how many deals at very critical risk, how many healthy deals, and then count of these deal IDs by stages. Here on the left I have a chatbot to further ask my data but also act on this data to automate steps behind it. So when I say data, let's then first start with the data behind it and what needs to happen so I have this product. Now just from the registration list, I understood many of you are technical users, so I will go through a couple of snowflake steps, but if anything is kind of unclear or you need further guidance, just give Steve a shot in the chat and maybe I can explain in further detail. So where does everything start from and what tables do I have? I've split this up to this medallion architecture, So for my raw tables, my initial step, nothing is being transformed. I have the bronze schema and then here I've got my raw deals. Maybe I click click on the preview. So your deal ID, deal name, accounts, owners, stages that you really have in a sales process, the amount, closing, create, and date. And, of course, each of these deal IDs will have, many transcripts, to it. So connecting on deal ID, I would have my source, transcript date ID and the actual text which is containing that email or meeting transcript, anything like that. In order for this to work even more in an accurate way or even better, I've also created an answer key which maps these transcripts to the specific deals, and I have something, let's say human entered, which is saying expected risk level. This is what we expect. It might be the case that data and the AI automation later reveals actually this was wrong, it's not healthy, it's actually worsening and we might lose this deal. So I mentioned the source files. Now let's go from the bronze layer to let me show you the actual setup. So this is the workbook in Snowflake that I've got, and I will spare you with a lot of scrolling for your eyes, but just to see that here I'm creating those tables right for my raw transcripts. What else have I got? I'm copying this information. And then if I do a quick count of those deals, maybe 12 here and transcript counts, how many we've got, 100. And then let's here see how these transcripts load. So if I look at this one deal ID, 101, what is the source? It's a call or an email, the transcript date and know what's happening. A lot of information in here, I'm sure we as humans are not keen to read through all of this information, so what we are doing today, we will use AI to do this step for us. Read through the raw transcript and kind of flag important information and deal risk as well. And note this is just text, it's nothing out of the ordinary. So this was the text loaded. What else have we got? So for the answer key that I was mentioning, I can show you that as well. Transcripts we've seen already. So this was the bronze layer. Now moving into the next stage which is the silver layer. So here, if I start from the top, I'm creating the schema, silver demo, creating that transcript signals table. And then here I've got a CTE, which I want to maybe even highlight or remain here for a couple of seconds for you to see what's happening. What I specifically want you to focus on are these two functions, right, that we now have in Snowflake. So this is AI classify and the second will be AI extract. So I'm selecting those columns, right, transcript ID, deal ID, transcript date. And then what does a classify do here? I will give it labels. So I'm saying based on these transcripts you can log it as healthy, you can log it as at risk or critical, and then what the description should be. And then for AI extract, what this does, so based on all of that text, it will also flag, well, was there a reason mentioned? What is the primary reason? If this is was delayed, if the AI agent can find... Cannot find anything, it will just say none. Then any next steps? So maybe the stakeholder has mentioned, you know, like, next year my way or let's revisit this in three months. So were there any next steps mentioned? Also any competitors? I'm sure this is a flag our sales team would like to see or at least be visible. And then in my eyes, the example I had from the beginning was there a champion change, will there be a stakeholder change? This is important for me to know, so I'm also telling to this agent please flag this as well If none exists and then also say none. Good. Then let's see a quick sanity check here if I select first maybe the count if this comes through correctly. Again, 100, I believe this is correct. And here at the very bottom, I'm going to show you like a mini table preview of what it could look like. So now next to my information on deal IDs, risk level and such, I have these additional columns, right? So what is the next step? Any competition mentioned? Any stakeholder change? Yes or no. And note that this has been all populated via that cortex function, right? So it's not something that I have influenced. The AI is doing the work for us, reading through these transcripts and flagging as it goes. I think even this part saves us a lot of time, even if you didn't have a dashboard in the end to make it more dynamic, even this part is already very, very valuable. Good. And just one thing to mention the AI extract. I'm sure there's a lot of use cases for sentiment analysis or similar, but I think this is even more than sentiment analysis. So we're not asking does this sound negative, pick up the words that sound negative. I think this can be poor analysis. We're actually asking very specific and structured questions here at the very start, right? So I'm asking you the question what is the next step or action mentioned? I'm not just saying flag any negative words. If you've ever used NLP or sentiment analysis then you might have noticed that these analyses are not always the most correct ones, right, because the machine learning will pick up something that's not negative or will not see it as such. Good, so now that we have risk labels together with reasons, next steps, competitor mentions, and stakeholder change, we can compare those fields with the source rather than asking someone like do you remember this deal back in the year? Do you remember was there something changing there? Was a deal at risk? Now we have actual evidence and fact based evidence. Now that we have set this up right from the bronze to the silver layer, I also need to show you the actual settings for that cortex agent. A bit more scrolling here at the top right, so what I'm using, that silver schema again. And importantly here, as I've noted, we're creating that semantic view for agents. So when I mentioned the medallion architecture, if you're moving from raw data, prepared data in silver, this would be maybe golden, like your gold layer, meaning I have my clean fact tables, I have my dimensions, but also the metrics. So if you are working in the BR world, your business metrics are these defined and agreed upon, you know, conventions and calculations that you have? So how do we calculate customer churn? What does it mean in our company? What is operational risk? Any pre filtering that we do, any specific calculations. So this is the semantic view that needs to be created and when you have that clean, prepared and also contextual data, right, with those metrics, This is what the agent can use to run that analysis later. So once I cleared this silver note, like from Silverhand creating the semantic view, we can do a quick sanity check. Count and the second part after we've created that semantic view, now we need to create another Cortex small misspelling, search service part for searching over raw transcripts from the data, right? So here I've given it a couple of parameters, so maybe give it a target lag of one day, maybe not the most recent one. And then here I'm kind of pre selecting these columns. Now as I scroll down, I believe this is actually the most important setup for your agent. In my case I've called it the Sales Pipeline Analyzer Agent. So what does this do? I'm sure you're like at least most of you are familiar with the YAML format and this is written in YAML. I'm creating this agent, giving it a name, profile, display name. And then here I'm saying you know the model to be used should be Claude Sonnet. I'm giving it proper instructions, I'm saying you know the response should always be concise. If you ever discuss a deal with the end customer, name the deal the current risk level, specific reasons, and then I have some sample questions as well, what could come up, which deals are currently at risk, how much pipeline is healthy, so everything that I'm expecting my sales colleagues would like to know, and the actual tools behind it, tool specifications. All right, so these were all of the steps in Snowflake. Again, if you missed anything or didn't catch all of it, just give us a shout in the chat. But a couple of phases need to happen, right, until you can set up that agent here in Snowflake. I've done this already. Now the question is how can I leverage this agent in a proper BI tool? And for this I am working in Sigma. So we'll jump here. Again on the left I have that chatbot that is pulling from that Cortex agent and here I can interact with my data. So let's ask it a question. I did practice chatting with it, but just for your information, it does take a while for it to warm up. I usually say to warm up, but we'll see how much time it needs right now. So if I say which deals are currently at critical risk, maybe I want to be specific, and Steve, I think we might need queuing music for this one as well as he's dialing the agent. So what I found is it does take longer at the very beginning, but afterwards it's much quicker. Let's see how it how long it takes now. Oh that was quick actually, no queuing music necessary. So it's found evidence on five deals for now. And notice it's a structured piece of information for me, it's actually a table, all of the deal IDs, deal names, account names and the actual sales owners, what's the amount and the closing dates. Very helpful, it gives me a bit of explanation why are these marked as at critical risk. And if I look at that Brookfield Realty, which is quite a lot of money to 100 ks, it says because of the budget fees from that company wide restructuring, the tool champion has kind of gone silent, maybe leaving the role, and there was a follow-up plan but we're still not sure is anyone on it, what is the latest, are we picking up on the risk here, maybe it's kind of gone silent in our team as well. So I can actually even ask it further. Okay, giving me some next steps what to do, but just because I showed you the raw transcripts, I can actually ask it, see if this works, if I ask it which transcript evidence supports the risk assessment or I'm just going to copy this, In case, let me spell it. For for this account. Right? So I want to see the actual evidence, like, are you pulling this from? Maybe I'm, kind of not believing you in the beginning. So let's see what it comes up with. And for me this is very valuable information. So it did look healthy at some point, the Brookfield account, but then some first crack showed that, you know, there were some security press concerns on the part of the client and my main champion, so my main stakeholder that I've developed a relationship to, has been suspended or like is leaving the company maybe. Based on that, the spending or the budget that I've discussed with this person has been suspended as well. So actual reasons listed, why does this add up to that critical level? Now the suggested next steps, what could I do? I could escalate this deal Or I could even spotlight it here to see more information on it. So let's actually do that. I'm going to be a bit lazy and copy its suggestion. So let's say let's spotlight the Brookfield account. For me to again to see what was the total pipeline involved, and here I see it already. So notice that even myself I have not interacted with the dashboard, I'm doing this via my agent or chatbot, it can do that as well, right? So here at the top, if I wanted to see all of the accounts, could come back to it, but already it has filtered the entire report based on that one prompt. So this is the exploration part of it. The next step would be the action. What do I do about this? We have learned that Brookfield Realty is at a very high risk, critical risk, so what do I do about it right now? One suggestion was to escalate this deal, and maybe let me quickly show you that I have a hidden table here in Sigma, which is the write back option called escalation log, And the agent will write a new row into this table when I give it instructions to do so. I made some tests right here, but we can do it for the Brookfield Realty as well. So I'm going to say, well, do escalate this because my team also needs to know about this. Escalate the Brookfield Realty. It needs review. I also always wonder, do I need to be more verbose? Do I lose a couple of words to take care of my token usage? Fine. And notice what is happening next. So the right big table will be populated right now, so it's setting those values for the separate columns. Insert row inside right big table escalation log. Let's see. And what else I've built in this business workflow is to be notified via email. Right now for the purpose of this demo I've put my own personal email, but you can imagine myself as an analyst flagging this risk, you might want to fire off an email to entire sales team, maybe hire leadership for them to know about this. And what else I've put in was this additional step to approve based on your preferences you could do without, but I just wanted to have the extra approve button. So now it's going to flag this as critical risk, so I can see that one. And I see the email notification has been fired off. For this purpose I have my mail open, so not heavy, but let's see if it goes through. So this was almost instant, the email notification in my inbox. Again, imagine this could be your entire sales team or your leadership. Maybe it does take to load a while now Outlook. But while this is opening up, I think we all saw that email is in my inbox, I might want to show you a bit of background how this works, at least in Sigma. So if I close this view and go to edit, edit my Sigma workbook, here in this chatbot box what I have is my agent called the pipeline analyzer and I can edit this agent. I've given it some data sources, so that escalation log table that you saw hidden, very long instructions because I want it to be precise. And then notice that I have as tools that Sales Pipeline Analyzer Agent, that Cortex Agent from the Snowflake end, And what else I have hidden are a couple of actions. So why does it fire off an email automatically? Why does it write to an escalation log? Because I set this up as additional actions. Notice these come in a logical sequence. So first, start the escalation key, insert row into that write the table, and lastly, notify me via email. The approval setting would be here, so no approval required, or maybe you want the additional approval, additional gate before it lands in your inbox. You can go to the published version again, but hopefully this gives you a bigger picture of how the whole setup works. So one part was on the SNOFLAKE end, but the second needs setting up in SIGMA. And to be fair, this is a very much straightforward tool, I would say, so not a lot of tinkering around necessary. You create your agent, you edit, you give it prompt tools and set up those actions for this to work. Now I might want to stop here for a couple of seconds just to ask if there are any questions in the chat, anything else. Steve, give me a shot if every one is still with us. But while we're waiting for that, just wanted to show you that there's a new row in the write back table, right? So Time, UK time have passed and Brookfield Realty deal rated as critical just based on that interaction with the agent. Good. I'm pretty sure something like this escalation summary could be part of a longer email to someone. Let's check here. Good. So you can format it in different way, put different information, but this was what I would use in my team. So a quick summary what happened, what is the recommended action, and lastly, who has escalated this? I'm pretty sure based on that email or other actions, you could build further workflows to your CRM, anything like that, but for now even that one email flagging the risk is very valuable to the team. All right. Then, let's see if I go back to all. Review the four critical deals. I want to escalate any others. I think I will leave it be leave it be for now. Good. To be fair, that's actually everything that I wanted to show you how this works. So to recap maybe the whole workflow that we have from the beginning, I had some raw transcripts, some raw data that lands in Snowflake in that bronze schema. And then eventually my AI or these agents turned them into structured risk signals, so not something human flagged, but really fact based. And then Cortex Agent gave me a way here to ask questions, but also make it interactive in the sense if I wanted to say well do flag this or escalate it, then it would flag it here in my write back table. I would see here as a critical risk, but secondly it will fire off that email to the team so they can proceed with further steps. So we write data, we send an email, and we actually also showed that via chat you could interact with the dashboard or highlight or filter down to that one specific account. One thing I did want to flag though is that the sample uses again sample or synthetic data. I'm pretty sure that with real conversations we would need to test these risk definitions, maybe kind of tweak the answer key against the language people actually use. So I'm not sure if this is a banking system, maybe there's different wording included. And then I would compare the output with your, again, business related examples and see how people actually converse in the company. The other thing that I mentioned was the model usage or the selection of model, but so far I haven't any issues with it apart from the, you know, like, warmer reloading in the beginning. Steve, go ahead. Was there a question? Yeah. It's a question from Stefan about how do you manage changes to a Cigna Cigna app? So is, like, version control testing the same for reports and dashboards as it is for an app? Same for Sigma as it is for the app. So, Stefan, you mean just the just the report part, not the Snowflake part of it? Because if it were just like my workbooks or anything like that, we could make use of git and sync to git. But for Sigma, I haven't tested this to be to be fair, so I can follow-up on that, but we do have now Sigma as workbooks as code. So as long as we have Sigma workbooks as code, then you could push it to Git and have that version control. But then again, maybe additional confirmation needed. I haven't still tested the workbooks as code, but I know that it's a feature that will be there. And again, is something that's different to other VA tools, right? Because previously your colleague would work in one version of a workbook, then they would send it over, maybe work afterwards on it as well, then tell you it is version two, not version one, whilst you were working on the second version and just kind of losing in between. So this part is definitely better to have version control in between. Hopefully that answers your questions, but yes, Sigma Workbooks as Code is your answer.

Learn how to turn buried customer conversations into actionable risk signals. In this webinar, InterWorks consultants Darinka Markovic and Steve Taylor walk through connecting Snowflake to Sigma AI apps for a customer retention and sales pipeline use case. You’ll see how Snowflake’s AI classify and extract functions turn raw meeting notes and emails into structured risk labels, reasons, competitor mentions, and stakeholder changes. Then watch a Cortex Agent power a Sigma chatbot that answers pipeline questions, filters dashboards, logs escalations to a write-back table, and emails the sales team automatically. The session closes with a Q&A on version control for Sigma.