A Laravel 13 + Livewire 4 demo application that implements an AI sales agent with CRM integration (Pipedrive), queue-based CRM mirroring, magic link client authentication, and streaming agent conversation.

Stars

13

7-day growth

No data

Forks

19

Open issues

0

License

No data

Last updated

2026-07-25

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It showcases a complete, modern PHP stack for building an AI sales agent with LLM observability (Langfuse) and long-term memory (Mem0), offering a practical reference for developers.

Who it is for

  • Laravel developers exploring AI agent integration
  • Developers building AI-powered sales or CRM tools
  • Teams learning agentic patterns with streaming and memory
  • Tutors or learners following the accompanying video lessons

Use cases

  • Prototyping an AI sales agent that handles customer inquiries using CRM data
  • Learning how to mirror CRM pipelines and stages into local models for AI context
  • Demonstrating agent observability and memory in a Laravel application
  • Educational use for workshop or course on AI agent development

Strengths

  • Modular agent design using the Beer and Code Harness (skills, hooks, commands)
  • Built-in LLM observability via Langfuse for tracing, costs and evaluations
  • Long-term memory integration with Mem0 for persistent agent context
  • Modern Laravel stack (13, Livewire 4, Sail, Pest, PHPStan) ensures code quality

Considerations

  • Only supports Pipedrive as the CRM driver; other CRMs require custom development
  • Requires external API keys (Langfuse, Mem0) and infrastructure (Docker, queues)
  • Designed as a lab/demo project, not production-hardened (e.g., no authentication hardening beyond magic links)

README quick start

Lab Agent Seller

Aplicação Laravel 13 + Livewire 4 que demonstra um agente de vendas com IA. Empresas conectam um CRM (driver Pipedrive), um job em fila (ScanCrmConnection) espelha pipelines/stages/campos/pessoas/deals para modelos locais, clientes entram via magic link (guard auth:client) e conversam com o agente de vendas streaming SellerAgent (laravel/ai).

Repositórios e ferramentas usados

ProjetoDescriçãoLink
Beer and Code HarnessHarness de agentes (skills, hooks, comandos e guidelines) usado no projetohttps://github.com/beerandcodeteam/beer-and-code-harness
LangfuseObservabilidade de LLM (traces, custos, avaliações)https://github.com/langfuse/langfuse
Mem0Camada de memória de longo prazo para o agentehttps://github.com/mem0ai/mem0

Pacotes de integração:

  • Langfuse — via axyr/laravel-langfuse (região US, projeto ai-lab).
  • Mem0 — via API HTTP (MEM0_API_KEY, MEM0_BASE_URL, MEM0_TIMEOUT no .env).

Aulas

Slides gravados neste repositório:

  • Aula 1slides-da-aula/aula-dia-1/index.html
  • Aula 2slides-da-aula/aula-dia-2/aula.html

Abra os arquivos .html direto no navegador.

Stack

  • PHP 8.5 · Laravel 13 · Livewire 4
  • laravel/ai (agente streaming)
  • Laravel Sail (Docker) · PostgreSQL 18 · Redis · Mailpit
  • Pest 4 · Larastan (PHPStan nível 7) · Pint
  • Tailwind CSS v4 · Vite

Setup do ambiente

Pré-requisitos: Docker, Composer 2, Node 22 + npm.

# 1. Clonar
git clone git@github.com:beerandcodeteam/lab-agent-seller.git
cd lab-agent-seller

# 2. Instalar deps PHP (necessário pra ter o binário do Sail)
composer install

# 3. Subir os containers (laravel.test PHP 8.5, pgsql 18, redis, mailpit)
vendor/bin/sail up -d

# 4. Setup completo: copia .env, key:generate, migrate --force, npm install, npm run build
vendor/bin/sail composer setup

# 5. Configurar chaves de API no .env
#    MEM0_API_KEY=...          (Mem0)
#    LANGFUSE_PUBLIC_KEY=...    (Langfuse - região US)
#    LANGFUSE_SECRET_KEY=...

Levantar o projeto

# Sobe os containers (se ainda não estiverem no ar)
vendor/bin/sail up -d

# Inicia os processos de desenvolvimento (servidor, queue, vite, logs)
vendor/bin

Related repositories

Similar projects matched by category, topics, and programming language.

ddosi
Featured
ddosi GitHub avatar

PacketLens

PacketLens is a pure front-end, offline pcap analysis tool that runs entirely in the browser, supporting deep protocol decoding, HTTPS decryption, and million-packet instant loading without any backend.

HTML
19
ViffyGwaanl
Featured
ViffyGwaanl GitHub avatar

kimi-k3-learn

An interactive learning system that turns the 47-page Kimi K3 technical report into a single offline HTML file with running algorithms, 3D visualizations, spaced repetition quizzes, and a smart highlighting QA tool.

AI & Machine Learning
15
iamtechartist
Featured
iamtechartist GitHub avatar

human-cell-visualizer

An interactive 3D visualization of three human cell types using Three.js, WebGL particles, and custom GLSL shaders, allowing users to rotate, zoom, morph, and explore annotated structures.

Design & Creative
13