Skip to content

murabcd/lead-agent

Repository files navigation

An inbound lead qualification and research agent built with Next.js.

Lead qualification and research agent built with Next.js, AI SDK, Workflow DevKit, and Telegram Bot API.

✨ The agent captures a lead in a contact sales form and then kicks off a qualification workflow. It integrates with Telegram to send and receive messages for human-in-the-loop feedback.

Features · Model providers · Deploy your own · Running locally


Features

  • Next.js App Router
    • Advanced routing for seamless navigation and performance
    • React Server Components (RSCs) for server-side rendering and increased performance
  • Vercel AI SDK Integration
    • AI SDK Agent class for autonomous research capabilities
    • Direct API calls for text generation and other AI features
  • Workflow DevKit Integration
    • Durable execution with use workflow for reliable background tasks
    • Sequential workflow steps for lead processing pipeline
  • Exa.ai Integration
    • Advanced web search capabilities for comprehensive lead research
    • Enhances the AI's ability to gather information about lead companies
  • Telegram Bot API
    • Human-in-the-loop approval workflow
    • Real-time notifications for lead qualification results
  • Shadcn/ui

Model providers

This app utilizes the OpenAI API through Vercel AI Gateway for its AI capabilities. It is configured to use OpenAI models for generating responses and conducting research.

Deploy your own

You can deploy your own version of Lead Agent to Vercel with one click:

Deploy with Vercel

Running locally

You will need to use the environment variables defined in .env.example to run Voice. It's recommended you use Vercel Environment Variables for this, but a .env file is all that is necessary.

Note: You should not commit your .env file or it will expose secrets that will allow others to control access to your various OpenAI and authentication provider accounts.

  1. Install Vercel CLI: npm i -g vercel
  2. Link local instance with Vercel and GitHub accounts (creates .vercel directory): vercel link
  3. Download your environment variables: vercel env pull
bun install
bun dev

Your app should now be running on localhost:3000.

About

Lead Qualification Agent built with Next.js, AI SDK, Workflow DevKit, and Telegram Bot API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •