---
title: "Deploy Extract Chat - chat with firecrawl"
description: "Scrape anything with a simple chat  [powered by Firecrawl & OpenAI]"
category: "AI/ML"
url: https://railway.com/deploy/UzxNSc
---

# Deploy Extract Chat - chat with firecrawl

Scrape anything with a simple chat  [powered by Firecrawl & OpenAI]

**[Deploy Extract Chat - chat with firecrawl on Railway](https://railway.com/template/UzxNSc)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/UzxNSc/manifest.json

- **Creator:** chin's Projects
- **Category:** AI/ML
- **Total deploys:** 2

## Template content

### Redis https://devicons.railway.app/i/redis.svg

- **Image:** bitnami/redis:7.2.5

### http

- **Image:** ghcr.io/ikatsuba/serverless-redis:latest
- **Public domain:** Yes

### app

- **Source:** https://github.com/chinpeerapat/extract-chat-T9si
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:16

## Documentation

Extract.chat: AI Chatbot with Firecrawl Integration
Extract.chat is an AI-powered chatbot application that enables real-time data extraction and search capabilities through Firecrawl integration. This project is a fork of Vercel's AI Chatbot, enhanced with specialized tools for retrieving and analyzing information from websites.
Project Overview
Extract.chat combines the power of Next.js, AI SDK, and Firecrawl to create a versatile chatbot that can not only engage in conversations but also fetch and extract structured data from the web in real-time.
Short description (75 characters):
Web-enabled AI assistant that searches and extracts structured data from websites.
Key Features
Core Functionality

Firecrawl Integration: Search the web for information and extract structured data from multiple websites
Next.js App Router: Advanced routing with React Server Components (RSCs) and Server Actions
AI SDK Integration: Unified API for generating text, structured objects, and tool calls with LLMs
User Authentication: Secure login/registration system with anonymous access option
Document Creation: Generate and manipulate text, code, and spreadsheet documents

Technical Highlights

Data Persistence: PostgreSQL database integration for chat history and user data
File Storage: Vercel Blob support for efficient file handling
Responsive UI: Modern interface built with shadcn/ui and Tailwind CSS
Real-time Streaming: Server-sent events for responsive chat interactions

Architecture
The application follows a modern web architecture:

Frontend: React-based UI with Next.js App Router
Backend: Server-side functions for authentication, chat processing, and database operations
AI Integration: Connection to AI models via the AI SDK
Web Integration: Firecrawl API for searching and extracting data from websites
Database: Vercel Postgres for data persistence

Deployment Requirements
To deploy Extract.chat, you'll need:

Environment Variables:

OPENAI_API_KEY: API key for OpenAI
AUTH_SECRET: A secret for authentication
BLOB_READ_WRITE_TOKEN: Vercel Blob storage token
POSTGRES_URL: Connection string for Postgres database
FIRECRAWL_API_KEY: API key for Firecrawl service


Vercel Account: For hosting and database integration
Node.js environment: For local development

Getting Started

Clone the repository
Install dependencies: pnpm install
Set up environment variables in .env.local
Start the development server: pnpm dev

Customization Options

AI Model: Configured to use OpenAI gpt-4o by default, but can be switched to other providers
UI Appearance: Customizable with Tailwind CSS
Authentication Flow: Modifiable login/register processes

Use Cases

Research Assistant: Quickly gather information from multiple websites
Data Extraction: Pull structured data from web pages
Content Creation: Generate documents and code with AI assistance
Knowledge Base: Create and maintain a personal knowledge repository

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/UzxNSc
