Skip to content

impower-ai/ai-agent-demo

Repository files navigation

AI Agent Demo

We believe recent technological advancements in Generative AI have propelled us into a new era of business process automation. From basic task automation to conversational AI, we now stand at the forefront of Agentic AI. This significant milestone showcases the evolution towards more intelligent and autonomous systems. Our AI Agent Demo is designed to highlight the powerful capabilities of AI Agents in a clear and accessible way.

Background

Over the past six years, we have used Robotic Process Automation (RPA) tools to automate business processes internally and for clients. These low-code platforms orchestrate workflows across systems, execute business logic, determine paths, incorporate human input, and leverage complex data analysis.

Ultimately, traditional business automation workflow software is merely code designed to follow a specific path; there is no true intelligence. We simply define exactly what we want our automation to do programmatically, and it follows the given workflow. This is where RPA has always fallen short; we are taking flexible business processes and forcing them into rigid, predefined paths, limiting their true potential.

image

We employ exceptional technologists with a high-level expertise in RPA development. Discussions have consistently arisen regarding the inefficiencies and hindrances of RPA within a business context. These issues have propelled us on a quest for better solutions. We envision a world where automation is truly intelligent, capable of adapting, learning, and transforming businesses in unprecedented ways. With the technological advancements of recent years, we believe the time is now to turn this vision into reality.

Since November 30th, 2022, Generative AI has profoundly impacted our society, transforming user experiences and capabilities in our technology stack. Initially, it was impressive to create Retrieval-Augmented Generation (RAG) apps or offer personalized chat experiences. However, we have now expanded into broader use cases that will significantly shape organizations for years to come. Generative AI has evolved from being conversational to autonomous, giving rise to Agentic systems. These systems address the shortcomings of traditional automation tools, offering a more advanced and versatile approach to automation.

image

Agentic AI's power lies in its ability to autonomously develop and execute complex plans while seeking human assistance when needed. This blend of independence and collaboration ensures streamlined and intelligent business operations, closely mirroring how humans naturally work. Unlike traditional automation, which follows rigid, predefined paths, Agentic AI reasons, adapts and evolves. For example, if you were preparing for a new client meeting, you would develop a plan, execute tasks, and seek help if needed—just like Agentic AI.

image

Another key enabler of Agentic systems is the set of tools—applications that AI agents can interact with. These tools allow AI agents to reason, decide, and fulfill their responsibilities effectively. Once an agent has its plan, it executes using available tools, similar to humans. For instance, when preparing for that new client meeting, you might use a CRM for client information, search online for details, and draft notes in a word processor. Likewise, Agentic AI systems understand their tasks, devise plans, and use the appropriate tools to accomplish them. Agents can be trained on external system APIs, enabling seamless interaction with various platforms and applications within your organization.

This is a stark contrast from traditional business process automation, where developers require substantial domain knowledge of a business process, often confining the process to rigidly defined parameters. Developers then code the process, handle exceptions, and maintain the system.

image

Now, we live in a world where business processes can be described in plain English to an AI agent. We simply provide the agent with the correct tools and guidelines, and watch it autonomously complete the task. This shift significantly simplifies and accelerates the automation of business processes, making them more adaptable and efficient.

image

We believe companies will soon have large teams of AI agents operating in parallel with employees, creating new levels of efficiency, innovation, and collaboration. When you harness the intelligence and reasoning of an LLM within business processes and enable seamless interaction with other systems, you transcend into the realm of TRUE intelligent automation.

image

We have created an open-source repository featuring a starter framework that leverages some of our preferred technologies to help you understand and implement Agentic AI in your organization. Designed with accessibility in mind, this resource offers a comprehensive foundation in Agentic AI, complete with practical steps to get you started. You can explore the repository here, which includes detailed instructions and descriptions of the technologies and patterns used.

Demo Overview

Technology

image

We are consistently tasked with building various API layers for organizations, whether it be a backend for an app or an integration layer. Typically, we design our APIs with an API gateway that interfaces with either containers or serverless functions. This setup often includes components such as Pub/Sub systems, storage buckets, secrets management, and more.

Deploying and managing this stack can be complex, frequently requiring numerous Terraform files to piece everything together. Nitric offers a different approach by understanding your code and automatically deploying the necessary resources and infrastructure, significantly simplifying the process. The local development experience with Nitric is also fantastic, arguably the best we've seen for building cloud-native backends.

If you haven't checked out Nitric yet, we highly recommend it.

image

Vercel AI SDK - https://sdk.vercel.ai/

We recognize that we are still in the early stages of the creation and adoption of Agentic frameworks and best practices. While there are many other solutions in this space, including Langchain, CrewAI, AutoGen, AgentGPT, and more, we ultimately chose Vercel's AI SDK for this demo. We found it offers an incredible amount of simplicity for solving complex problems. We were also impressed by Vercel's holistic approach to integrating Generative AI across an application's entire stack, from frontend to backend.

  • SDK Core: A unified API for generating text, structured objects, and tool calls with LLMs.
  • AI SDK UI: A set of framework-agnostic hooks for quickly building chat and generative user interface.
  • AI SDK RSC: A library to stream generative user interfaces with React Server Components (RSC).

We highly recommend checking out v0 from Vercel to see some of the cool things Vercel has been working on in the space.

image

We are leveraging OpenAI as our LLM, as it provides the best developer experience out of the box for understanding this demo. Vercel's AI SDK supports many providers: https://sdk.vercel.ai/docs/foundations/providers-and-models

image

We leverage SerpApi to efficiently search the internet for relevant information.

Key Concepts

We aimed to provide a demo that showcases several capabilities applicable across all business process automation efforts:

  • Accessing the internet: Our demo demonstrates the ability to research and summarize various topics.
  • Interacting with APIs: We built an "On This Day" tool that returns random facts about a specific day, illustrating how AI agents can seamlessly interact with external systems and incorporate the acquired knowledge into their processes.
  • Crafting communication through emails: Effective communication is crucial for AI agents, and our demo highlights their proficiency in creating well-crafted emails.

Running the Project

We generally install Nitric using WSL if on Windows.

Add Environment Variables

Create .env file and add the following two variables

  • OPENAI_API_KEY
  • SERP_API_KEY

Start the Project

To start your Nitric project, open your terminal and execute the following command:

nitric start

If you are on WSL on Windows add --no-browser to the command to avoid browser launch errors.

nitric start --no-browser

You should see the project load and open a dashboard.

image

Send Request

To send a request first navigate to the dashboard url.

Enter a JSON body with a key of event.

image

If everything is wired up correctly you should see a response that contains the plan and results.

image

Additional Resources

For those interested in learning more about AI agents, here are some valuable resources:

Videos:

Articles & Blog Posts:

Academic Papers:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •