<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Let's build a data agent on Hat Full of Data</title><link>https://hatfullofdata.blog/past-sessions/lets-build-a-data-agent/</link><description>Recent content in Let's build a data agent on Hat Full of Data</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><atom:link href="https://hatfullofdata.blog/past-sessions/lets-build-a-data-agent/index.xml" rel="self" type="application/rss+xml"/><item><title>Demo Script for Data Agents</title><link>https://hatfullofdata.blog/past-sessions/lets-build-a-data-agent/demo-setup/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://hatfullofdata.blog/past-sessions/lets-build-a-data-agent/demo-setup/</guid><description>&lt;h2 id="desktops"&gt;Desktops&#10;&lt;/h2&gt;&lt;ul&gt;&#10;&lt;li&gt;Presentation - PowerPoint&lt;/li&gt;&#10;&lt;li&gt;Demo - Browser in workspace with lakehouse, 3 models and Daryl Agent&lt;/li&gt;&#10;&lt;li&gt;Power BI - Power BI with the Daryl Model open&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="have-ready-to-type"&gt;Have ready to type&#10;&lt;/h2&gt;&lt;p&gt;Put these on stream deck buttons or in your clipboard history or other typing tools.&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;&#10;&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1&#10;&lt;/span&gt;&lt;span class="lnt"&gt;2&#10;&lt;/span&gt;&lt;span class="lnt"&gt;3&#10;&lt;/span&gt;&lt;span class="lnt"&gt;4&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;For April 2026&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- Total Revenue&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- Trading days&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;- Average daily sales&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;h2 id="alfie-demo"&gt;Alfie Demo&#10;&lt;/h2&gt;&lt;p&gt;::: info Instructions&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Open Lakehouse&lt;/li&gt;&#10;&lt;li&gt;Explain data tables&lt;/li&gt;&#10;&lt;li&gt;Create agent&lt;/li&gt;&#10;&lt;li&gt;Connect to the Lakehouse&lt;/li&gt;&#10;&lt;li&gt;Select all tables&lt;/li&gt;&#10;&lt;li&gt;Ask Question&#10;:::&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="bella-demo"&gt;Bella Demo&#10;&lt;/h2&gt;&lt;h3 id="short-version"&gt;Short version&#10;&lt;/h3&gt;&lt;p&gt;::: info Instructions&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Open Bella semantic model&lt;/li&gt;&#10;&lt;li&gt;Show measure and formatting&lt;/li&gt;&#10;&lt;li&gt;Create agent&lt;/li&gt;&#10;&lt;li&gt;Connect to semantic model&lt;/li&gt;&#10;&lt;li&gt;Select all tables&lt;/li&gt;&#10;&lt;li&gt;Ask question&#10;:::&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h3 id="longer-version"&gt;Longer Version&#10;&lt;/h3&gt;&lt;p&gt;::: info Instructions&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Open Lakehouse&lt;/li&gt;&#10;&lt;li&gt;Create Semantic model with all tables&lt;/li&gt;&#10;&lt;li&gt;Add relationships&lt;/li&gt;&#10;&lt;li&gt;Add measure and format result&lt;/li&gt;&#10;&lt;li&gt;Create agent&lt;/li&gt;&#10;&lt;li&gt;Connect to semantic model&lt;/li&gt;&#10;&lt;li&gt;Select all tables&lt;/li&gt;&#10;&lt;li&gt;Ask question&#10;:::&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="casper-demo"&gt;Casper Demo&#10;&lt;/h2&gt;&lt;p&gt;::: info Instructions&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Open Casper semantic model - exactly the same as Bella&lt;/li&gt;&#10;&lt;li&gt;Add description to IsOpen column&lt;/li&gt;&#10;&lt;li&gt;Create agent&lt;/li&gt;&#10;&lt;li&gt;Connect to semantic model&lt;/li&gt;&#10;&lt;li&gt;Select all tables&lt;/li&gt;&#10;&lt;li&gt;Ask question&#10;:::&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;&#10;&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Indicates whether the business is open on this date. Values are Yes or No&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;h2 id="daryl-demo"&gt;Daryl Demo&#10;&lt;/h2&gt;&lt;p&gt;::: info Instructions&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Show Daryl Model open in Power BI desktop&lt;/li&gt;&#10;&lt;li&gt;Show the descriptions on fields&lt;/li&gt;&#10;&lt;li&gt;Show TMDL script to assist adding descriptions&lt;/li&gt;&#10;&lt;li&gt;Show Daryl agent and show agent instructions&#10;:::&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="extras"&gt;Extras&#10;&lt;/h2&gt;&lt;h3 id="improve-alfie-easily"&gt;Improve Alfie Easily&#10;&lt;/h3&gt;&lt;p&gt;The Alfie agent based off the Lakehouse could be improved by adding in Example Questions to define some terms&lt;/p&gt;&#10;&lt;h3 id="total-sales"&gt;Total Sales&#10;&lt;/h3&gt;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;&#10;&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1&#10;&lt;/span&gt;&lt;span class="lnt"&gt;2&#10;&lt;/span&gt;&lt;span class="lnt"&gt;3&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-SQL" data-lang="SQL"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;&lt;span class="w"&gt; &#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SalesAmount&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fact_sales&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;&lt;h3 id="trading-days"&gt;Trading Days&#10;&lt;/h3&gt;&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;&#10;&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt"&gt;1&#10;&lt;/span&gt;&lt;span class="lnt"&gt;2&#10;&lt;/span&gt;&lt;span class="lnt"&gt;3&#10;&lt;/span&gt;&lt;span class="lnt"&gt;4&#10;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&#10;&lt;td class="lntd"&gt;&#10;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-SQL" data-lang="SQL"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;&lt;span class="w"&gt; &#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;dim_date&lt;/span&gt;&lt;span class="w"&gt; &#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;WHERE&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;IsOpen&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;Yes&amp;#39;&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&lt;/div&gt;</description></item></channel></rss>