<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Leslie McFarlin</title>
    <description>The latest articles on DEV Community by Leslie McFarlin (@liv_mc_d4d89327f).</description>
    <link>https://dev.to/liv_mc_d4d89327f</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2558086%2Ff04d904c-9c4f-4436-a0df-fbacfb1637a0.jpg</url>
      <title>DEV Community: Leslie McFarlin</title>
      <link>https://dev.to/liv_mc_d4d89327f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/liv_mc_d4d89327f"/>
    <language>en</language>
    <item>
      <title>Building a Task Flow Builder</title>
      <dc:creator>Leslie McFarlin</dc:creator>
      <pubDate>Thu, 04 Dec 2025 12:46:49 +0000</pubDate>
      <link>https://dev.to/liv_mc_d4d89327f/building-a-task-flow-builder-2ml4</link>
      <guid>https://dev.to/liv_mc_d4d89327f/building-a-task-flow-builder-2ml4</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/googlekagglechallenge"&gt;Google AI Agents Writing Challenge&lt;/a&gt;: Learning Reflections&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Before the AI agents Intensive, I thought of LLMs as finely tuned probabilistic models: systems that surface the next most likely tokens given an input and context window. In other words, they were powerful conditional probability machines that could align very well with a prompt--but fundamentally in a &lt;em&gt;single pass&lt;/em&gt; and within a single message.&lt;/p&gt;

&lt;p&gt;This course reframed that for me. Agents are &lt;em&gt;orchestrators&lt;/em&gt; that use LLMs as just one component in a larger system: combining model reasoning with tools, memory, and state to actually do work over time.&lt;/p&gt;

&lt;p&gt;I came into the course as a quantitative UX researcher with some design experience, watching UX teams adjust (and sometimes struggle) as AI-infused tools are pushed into their stacks--Lovable, Builder.io, Figma, and beyond. In that context, one of the most debated and critical artifacts is still the same: the task flow. Teams argue about what really happens, how many paths exist, and what to document. I wanted to build something that actually helps at that point of friction: taking messy, verbal descriptions and turning them into a clear, validated flow that everyone can see and react to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Concepts That Resonated the Most
&lt;/h2&gt;

&lt;p&gt;The biggest concept that stuck with me was understanding the idea of &lt;strong&gt;tools + stateful sessions&lt;/strong&gt; as the core building blocks of agentic systems.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Tools&lt;br&gt;
The course's emphasis on moving logic into tools and keeping the LLM relatively "thin" resonated with my background. A tool has a clear contract, can be tested independently, and is auditable. That shaped my tool functions. Instead of asking Gemini to generate a diagram in one shot, I let it decide when to call each tool and with what structured input.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Session and memory&lt;br&gt;
Session and memory made it clear that good agents carry context across multiple turns. For my UX Task Flow Builder, that's what allows the agent to ask a clarifying question and then meaningfully update the flow when I answer.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Observability&lt;br&gt;
Logging and tracing turned this project from "a cool thing I tried" into something I could seriously reason about and debug. When sessions or app names were misaligned, those logs were the only reason I could track down what went wrong.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The idea of &lt;strong&gt;multi-step, tool-using flows&lt;/strong&gt; where the agent can decide, "I need to ask more, then call a tool, then show results" also felt very close to how UX work actually happens.&lt;/p&gt;

&lt;h2&gt;
  
  
  How My Understanding of AI Agents Evolved
&lt;/h2&gt;

&lt;p&gt;My mental model shifted from "an LLM that responds to prompts" to "a system that coordinates the LLM, tools, and state to achieve a goal."&lt;/p&gt;

&lt;p&gt;Some of the biggest shifts were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;From single-pass to dialog&lt;br&gt;
I used to think mostly in terms of optimizing a single, dense prompt. Now I think in turns: the agent can say, "I can build that flow, but I need to know &lt;em&gt;X&lt;/em&gt; first." In UX, that's how collaboration works, I just hadn't applied that lens to an AI system before.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;From model-centric to architecture-centric&lt;br&gt;
Instead of starting with "Which model should I use?", I started with assessing what was needed to accomplish the end goal:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What tools do I need?&lt;/li&gt;
&lt;li&gt;How do I represent a task flow so it can be reviewed?&lt;/li&gt;
&lt;li&gt;When should the agent call a tool vs. ask a question?&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;&lt;p&gt;Thinking about an extensible system&lt;br&gt;&lt;br&gt;
The multi-agent and evaluation sections of the course made me think of my project as a starting point and not the final point. There's room to add a more robust reviewer agent or a Streamlit UI in a way that feels natural instead of bolted on.&lt;/p&gt;&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;The key shift for me is: LLMs are still probabilistic sequence models, but agents let us embed them in workflows where they can take action and make refinements instead of answer once and stop.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built and What I Learned from It
&lt;/h2&gt;

&lt;p&gt;My capstone project is a UX Task Flow Builder Agent, an LLM-powered agent that turns natural language descriptions of UX flows into valid Mermaid diagrams. It also generates &lt;code&gt;.mmd&lt;/code&gt; and PNG outputs. Building it has taught me several things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Defensive design is your friend&lt;br&gt;
I ran into cases where the agent sent unexpected output types into one of the tools. Instead of crashing, I updated the code to accommodate that output but return a failed validation message and an error diagram. This actually mirrors a UX principle: it's better to show an informative error than a blank screen.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Agent plumbing matters&lt;br&gt;
Misaligned &lt;code&gt;APP_NAME&lt;/code&gt;, sessions, and runners caused a bit of a headache at times. Fixing that forced me to really understand how ADK wires agents, apps, and sessions together. This is knowledge I can reuse on more complex projects.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Closing Thoughts
&lt;/h2&gt;

&lt;p&gt;As someone who has been in task-flow debates, seeing the agent ask questions like, "Should the user be allowed to retry after failed login?" and then generate a clean diagram felt practical. It directly addresses a coordination + documentation problem that some UX teams run into, and that may become more common as AI tools get bolted into existing design stacks.&lt;/p&gt;

&lt;p&gt;Overall, this intensive shifted me from thinking about prompting a probabilistic model to designing agentic UX tools. It gave me both the conceptual toolkit and concrete project I can evolve. Most importantly, it gave me something I can plausibly bring into real-world UX workflows where AI tools are no longer optional.&lt;/p&gt;

</description>
      <category>googleaichallenge</category>
      <category>ai</category>
      <category>agents</category>
      <category>devchallenge</category>
    </item>
  </channel>
</rss>
