⚠️ Compliance Note:

SafePipe filters PII based on standard patterns. While highly effective, the User is responsible for verifying output in critical legal/medical contexts.

TEMPLATE GUIDE

Deploying the Secure Corporate Chat

SafePipe provides a production-ready Next.js chat interface that you can host on your own internal network (Vercel/Docker). It is pre-configured to use SafePipe for GDPR compliance.

GDPR Compliant

PII automatically redacted before reaching AI

10-Minute Deploy

Clone, configure, and run in minutes

Self-Hosted

Runs on your infrastructure, your rules

1Prerequisites

SafePipe API Key

Create an API key from the Dashboard. Make sure to enable "Mask Emails" in the protection settings for full PII coverage.

Node.js 18+ Installed

The template uses Next.js 15 with App Router. Ensure you have Node.js 18 or higher installed. Download Node.js

2Installation Steps

Clone the Repository

terminal
bash
git clone https:"text-zinc-500">//github.com/volodimir332/safepipe-chat-starter.git cd safepipe-chat-starter

Install Dependencies

terminal
bash
npm install

Create Environment File

Create a .env.local file in the project root:

.env.local
bash
"text-zinc-500"># Your SafePipe API Key (get it from dashboard.safepipe.eu)
SAFEPIPE_API_KEY=sp_live_...

"text-zinc-500"># Your AI Provider Key (OpenAI, DeepSeek, etc.)
PROVIDER_API_KEY=sk-...

"text-zinc-500"># Optional: Default model to use
DEFAULT_MODEL=gpt-5.1-instant

Start the Development Server

terminal
bash
npm run dev

Open http://localhost:3000 to see your corporate chat interface.

3Production Deployment

Deploy to Vercel
npx vercel --prod

Add environment variables in Vercel dashboard

Docker
docker build -t corp-chat .
docker run -p 3000:3000 corp-chat

Dockerfile included in the template

Security Note

Stateless & Secure by Design

This chat UI does not store message history. Each conversation exists only in the browser session and is cleared on refresh.

  • No database required for chat functionality
  • Messages are not persisted anywhere
  • PII is redacted before sending to AI providers
  • Zero logs policy for enterprise privacy

✓ Stateless interface secure for enterprise use

Need help with deployment?

SafePipe