---
title: "eve Agent with Python"
description: "Build an agentic app with eve, Next.js, and FastAPI using Vercel Services."
url: "https://vercel.com/templates/eve/eve-agent-with-python"
links:
  repository: "https://github.com/vercel-labs/eve-agent-python-template"
  deploy: "https://vercel.com/new/clone?demo-title=eve+Agent+with+Python&demo-description=Build+an+agentic+app+with+eve%2C+Next.js%2C+and+FastAPI+using+Vercel+Services.&project-name=eve-agent-python&repository-name=eve-agent-python&repository-url=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Feve-agent-python-template&env=EVE_CHAT_PASSWORD&envDescription=The+password+visitors+enter+before+they+can+use+the+app+and+chat+with+the+agent.&envLink=https%3A%2F%2Fgithub.com%2Fvercel-labs%2Feve-agent-python-template%23getting-started&products=%5B%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22storage%22%2C%22productSlug%22%3A%22neon%22%2C%22integrationSlug%22%3A%22neon%22%7D%5D&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F2JipXpxaYyBFDSqfw1Lmjb%2F48bed204c71b9ecc67dc16db42ea1472%2Fimage.png"
---

# eve Agent with Python

Build an agentic app with eve, Next.js, and FastAPI using Vercel Services.

### eve finds a Python.

Connect an AI chat interface to Python functions and application data. This template combines an eve agent, a Next.js frontend, and a FastAPI backend, with a working task manager that you can use through chat or a dedicated page.

Use it as a starting point for internal tools and assistants that need to read records, update data, or run calculations. The agent's tools are defined in TypeScript and call Python endpoints, so you can keep your backend logic in Python while building the interface in React.

### Give your agent Python tools

The included tools demonstrate how an agent calls backend functions and presents their results. The statistics tool calculates measures such as mean, median, and quartiles. The text analysis tool returns word counts, estimated reading time, readability, and frequently used words.

FastAPI validates requests and runs the calculations. The chat displays the returned data in dedicated cards. Extend this pattern with Python endpoints for your own application logic.

### Manage the same data through chat and pages

The agent and the Tasks page use the same FastAPI endpoints and database. People can create, edit, complete, and delete tasks through either interface. When the agent calls its deletion tool, it waits for approval before removing the task.

Tasks are stored in Neon Postgres on Vercel, with SQLModel defining the database model. Local development falls back to SQLite when no database connection is configured.

### Build responses with generative UI

Alongside task and analysis cards, the agent can present answers as tables, metrics, and other components through json-render. You define the component catalog and React renderers, and the template validates the agent's structured output before displaying it.

The chat also includes follow-up question forms and resumable conversations. Customize the agent's instructions, tools, and components to fit the work your app supports.

### Deploy the frontend, agent, and backend together

All three services deploy in one project through [Vercel Services](https://vercel.com/docs/services). The FastAPI backend has no public route; the agent and Next.js server reach it through internal service bindings.

During setup, configure Neon and set the `EVE_CHAT_PASSWORD` environment variable for browser access. Everyone with the password shares the same task list and can access shared conversation links. You can replace this access model with your own authentication provider as you develop the app.

## Related Templates

### [eve TanStack Agent](https://vercel.com/templates/eve/eve-tanstack-agent)

Web chat built on eve and TanStack Start.

### [eve Vercel Drives Starter](https://vercel.com/templates/eve/eve-vercel-drives-starter)

An eve agent that reads and saves your team's files on a Vercel Drive.

### [eve Data Analyst](https://vercel.com/templates/eve/eve-data-analyst)

Slack-based data analyst built on eve that answers questions about your business from a Postgres database.

## Related Integrations

### [Neon](https://vercel.com/marketplace/neon)

Postgres serverless platform designed to build reliable and scalable apps

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
