Title: The Rise of Stanley: AI That Does More Than Just Talk

URL: https://www.infobip.com/engineering/the-rise-of-stanley-ai-that-does-more-than-just-talk

Imagine asking your AI assistant to solve a tough problem – only to get stuck in an endless loop of vague, non-committal responses. Sound familiar?

We’ve all been there: u003cstrongu003ea chatbot that talks a good game but never actually does anythingu003c/strongu003e.

That frustration was our spark, the moment we decided to build something different -something that doesn’t just respond, but reasons and acts.

Enter Stanley.

## We dreamed of conversations with purpose

We started with a bold ambition: u003cstrongu003eto create an AI capable of driving real conversations that lead to real solutionsu003c/strongu003e. We didn’t want just another chatbot spitting out witty replies. We dreamed of an AI that could:

u003cliu003eHelp teams truly collaborate,u003c/liu003eu003cliu003eAutomate complex problems with code and reasoning.u003c/liu003e

Our North Star? An AI so proactive u003cstrongu003eit can write and execute code in real-timeu003c/strongu003e. If we’re going to bring AI into our workplaces, it should be more than a glorified Qu0026amp;A machine.

## It all began on Slack…

First stop: Slack.

We had this grand vision of u003cstrongu003eusing Slack as the AI’s central brainu003c/strongu003e. We asked ourselves, “Isn’t everything on Slack?” It seemed logical – every question must’ve already been answered there.

The plan? u003cstrongu003eFeed the AI all the Slack conversationsu003c/strongu003e and let it absorb every bit of context.

But there was a pitfall. We learned the hard way that u003cstrongu003eSlack is where knowledge hides, not shinesu003c/strongu003e. All those channels, threads, and pinned messages created a giant haystack of half-finished ideas.

We discovered that Stanley responded to most questions with “It should be fixed, try now.” Not surprising – most Slack conversations ended that way. But the problem? No one explained the solutions in depth, which was a challenge for our AI.

“Feed Me Documentation,” they said.

u003cstrongu003eWhen Slack didn’t pan out, we turned to Confluenceu003c/strongu003e.

It’s structured, right? Certainly more organized than Slack. We thought that if we just fed Confluence docs into the AI’s pipeline, everything would magically click.

The plot twist: “Garbage in, garbage out.”

Turns out, u003cstrongu003ethe neat look of documentation doesn’t guarantee quality contentu003c/strongu003e. Our model got stuck, confidently churning out wrong information because it was pulling from outdated or incomplete docs.

The AI sounded smart – it seemed like it knew our products and issues… but it wasn’t accurate.

## AHA moment: it’s not just about reading, it’s about doing

That’s when we realized we were asking the wrong questions. Instead of obsessing over how the AI was reading our data, u003cstrongu003ewe needed to focus on how it could act on itu003c/strongu003e. Conversations are great, but endless chat accomplishes nothing if there’s no action at the end.

We pivoted to a new mantra:

u003cstrongu003eReasoning + Action + Functions = AI on Steroidsu003c/strongu003e

And this is how Stanly was born.

So how did Stanley come into existence? We taught this AI to:

u003cliu003eu003cstrongu003eReasonu003c/strongu003e: We implemented a ReAct (Reasoning and Acting) framework, allowing Stanley to form a plan, execute the next steps, and feed the response back to re-evaluate what had been done so far and act upon it.u003c/liu003eu003cliu003eu003cstrongu003eSelf-correctu003c/strongu003e: If Stanley noticed that the previous thought or code execution wasn’t what it needed to complete the user request, it would re-evaluate its plan and search for tools (code) that would help it better come to the next step.u003c/liu003eu003cliu003eu003cstrongu003eCode executionu003c/strongu003e: We fed a dozen functions into Stanley to use, and had another agent pick the best candidates for it to use based on the conversation and plan.u003c/liu003eu003cliu003eu003cstrongu003eLoopu003c/strongu003e: We repeated this process once it reached a solution. The result was an AI that talked to itself until it figured out the solution.u003c/liu003e

## We faced a few tough challenges…

Of course, it wasn’t all smooth sailing. We encountered:

u003cliu003eu003cstrongu003eLoopsu003c/strongu003e: Sometimes Stanley would get stuck in a reasoning cycle, chasing its tail.u003c/liu003eu003cliu003eu003cstrongu003eBugsu003c/strongu003e: Integrating real-time code execution brought a few meltdown moments. Sometimes, the results were so large that they wouldn’t fit into OpenAI’s context, so we had to get creative.u003c/liu003eu003cliu003eu003cstrongu003eCreative partu003c/strongu003e: We had to figure out if users needed Stanley to review the code results, or if it was raw data for the users to use. That way, we would serve the users the data they needed, without having to pump megabytes of data into Stanley.u003c/liu003e

But each hurdle taught us more about how to build robust guardrails and smarter feedback loops for Stanley.

Why this matters?

Yes, we’re proud of Stanley. But this is about more than just our AI’s success story. It’s about the shift from AI as a glorified chatbox to AI as an agent of action. The potential is massive:

u003cliu003eu003cstrongu003eIncreased Team Efficiencyu003c/strongu003e: Cutting down days of manual tasks to just hours.u003c/liu003eu003cliu003eu003cstrongu003eBetter Decision-Makingu003c/strongu003e: With real-time analysis, teams can pivot faster.u003c/liu003eu003cliu003eu003cstrongu003eEndless Possibilitiesu003c/strongu003e: From DevOps to finance, the blueprint we used for Stanley can be adapted across industries.u003c/liu003eu003cliu003eu003cstrongu003eClosing the Knowledge Gapu003c/strongu003e: If you need to gather data from multiple applications but don’t have the time or resources to develop scripts to aggregate and analyze the results, Stanley can do it for you – just by asking using natural human language.u003c/liu003e

## Enter Stanley 2.0

We’re not done yet. u003cstrongu003eStanley’s next evolution is already in the worksu003c/strongu003e.

Stanley 2.0 aims to refine the action layer, make better judgment calls, seamlessly integrate with more platforms, and, most importantly, enable autonomous decision-making.

This is u003cstrongu003eespecially exciting for incidentsu003c/strongu003e – Stanley will analyze anomaly detection systems, figure out what the issue is, and notify the appropriate team members.

u003cstrongu003eThe same goes for auto-scalingu003c/strongu003e. In real-time, we can analyze workloads and use tailored functions to adjust resources – either increasing or decreasing them – based on key metrics.

AI that does more than talk is no longer science fiction. With Stanley, it’s a reality. By giving AI the power to reason and act, we’ve transformed it from a companion into an engineer.

The journey had its bumps, but the destination was worth it. Watch for Stanley 2.0 – it could change how you work, think, and solve problems.