Everything you need to deploy your AI assistant!
tag-assistant/
βββ backend/ β Server code
β βββ config/
β β βββ platforms.json β Your 86 Scope3 platforms
β βββ services/
β β βββ ai-agent.js β AI processing
β β βββ file-storage.js β Stores tickets
β β βββ history.js β Audit trail
β β βββ platform-matcher.js β Platform recognition
β βββ data/ β Tickets stored here
β βββ package.json β Dependencies list
β βββ .env.example β Configuration template
β βββ server.js β Main server
β
βββ frontend.html β Chat interface (single file!)
βββ README.md β This file
- Create a new repository on GitHub
- Upload all files from the
backend/folder - Push to GitHub
- Go to vercel.com
- Import your GitHub repository
- Add environment variables (see below)
- Deploy!
- Open
frontend.htmlin a text editor - Replace
REPLACE_WITH_YOUR_VERCEL_URLwith your actual URL - Save and open in browser
- Start creating tag requests!
Detailed guide: See ULTIMATE_BEGINNER_GUIDE.md in the chat
When deploying to Vercel, add these:
GEMINI_API_KEY=your_gemini_key_here
NODE_ENV=production
API_SECRET_KEY=scope3_secret_2024
ALLOWED_ORIGINS=*
PORT=3000
Get your Gemini API key: https://aistudio.google.com/app/apikey (FREE!)
"urgent Nike tag for Meta"
- β Client: Nike
- β Platform: Meta
- β Tag Type: (will ask)
- β Priority: High
- Saved in
backend/data/tickets.json - Full history in
backend/data/history.json - Can export to CSV anytime!
Already configured in backend/config/platforms.json:
Top platforms:
- Meta (Facebook, Meta Ads)
- Google DV360 (20+ variations)
- Google Ad Manager (GAM/DFP)
- The Trade Desk (TTD)
- Xandr (AppNexus)
- Amazon Advertising
- And 80 more!
Client-specific variations included:
- Cofidis:
dv360_cofidis,gam_cofidis, etc. - SNCF:
adventori_sncf, etc. - Solocal:
adnxs_solocal, etc.
Your backend provides these endpoints:
Chat & Tickets:
POST /api/chat- Send message to AIPOST /api/tickets/create- Create new ticketGET /api/tickets- List all ticketsGET /api/tickets/:id- Get single ticket
Analytics:
GET /api/analytics- Get usage statsGET /api/analytics/turnaround- Response timesGET /api/storage/stats- Storage info
Export:
GET /api/export/tickets- Download tickets CSVGET /api/export/history- Download history CSV
Other:
GET /api/health- Health checkGET /api/platforms- List platforms
# Health check
curl https://your-app.vercel.app/api/health
# Should return:
{
"status": "ok",
"storage": "file",
"services": {
"ai": true,
"storage": true,
"platforms": 86
}
}- Open
frontend.htmlin browser - Type: "urgent Nike tag for Meta"
- AI should respond and extract data
- Click "Create Ticket"
- Success! π
File-based storage (no Notion required!):
backend/data/
βββ tickets.json β All tag requests
βββ history.json β Complete audit trail
Export anytime:
- Download CSV from API
- Open in Excel/Google Sheets
- Share with team!
Switching to Notion later? Just add these environment variables and it switches automatically:
NOTION_TOKEN=secret_xxx
NOTION_TICKETS_DB_ID=xxx
NOTION_HISTORY_DB_ID=xxx
EVERYTHING IS FREE!
- β Gemini API: FREE (1,500 requests/day)
- β Vercel Hosting: FREE (hobby plan)
- β File Storage: FREE (included)
- β GitHub: FREE
Total: $0/month π
- Open
backend/config/platforms.json - Add new platform:
{
"id": "new-platform",
"name": "New Platform Name",
"aliases": ["Alias 1", "Alias 2"],
"active": true,
"priority": 87
}- Redeploy!
- Open
frontend.html - Edit the
<style>section at the top - Change colors, fonts, etc.
- Save and refresh!
Currently: Nike, SAP, Cofidis, SNCF Connect, eltordlic
To add more, just type them! The AI will learn.
- Make sure you updated
API_BASE_URLinfrontend.html - Should look like:
https://your-app.vercel.app/api
- Check that
package.jsonis in the backend folder - Make sure Node.js version is set to 18+
- Check Vercel logs for specific error
- Verify
GEMINI_API_KEYis set in Vercel - Check it's the correct key (starts with
AIza...) - Make sure you didn't hit the free tier limit
- Check
backend/config/platforms.jsonhas the platform - Add aliases if needed
- The AI uses fuzzy matching, so typos should still work!
- Tickets are stored in
backend/data/tickets.json - Use API endpoint:
GET /api/tickets - Or export CSV:
GET /api/export/tickets
In the chat, you'll find:
ULTIMATE_BEGINNER_GUIDE.md- Complete step-by-stepQUICK_START_FILE_STORAGE.md- Quick referenceFILE_STORAGE_SOLUTION.md- Technical detailsSCOPE3_CUSTOMIZATION.md- Platform info
For Users (2 minutes):
- Show them the URL
- Demo: "urgent Nike tag for Meta"
- Let them try!
For Admins (10 minutes):
- How to access API
- How to export CSV
- How to view analytics
- How to add platforms
Keep these SECRET:
- β Gemini API Key
- β API Secret Key
Safe to share:
- β Your Vercel URL
- β Frontend HTML file
- β Ticket data (it's yours!)
Note: The API_SECRET_KEY in your .env prevents unauthorized access.
- Deploy backend β
- Set up frontend β
- Test with 3 team members
- Export first CSV report
- Train full team
- Monitor usage
- Add custom platforms if needed
- Celebrate success! π
- Consider Notion upgrade
- Add JS Tag Generation API
- Build analytics dashboard
- Automate weekly reports
Need help?
Ask in the Claude chat:
- "I'm stuck on [step]"
- "This error appeared: [error message]"
- "How do I [do something]?"
I'm here to help! π
You have everything you need to deploy your AI Tag Request Assistant!
What you're getting:
- β AI-powered natural language understanding
- β 86 Scope3 platforms pre-configured
- β Automatic ticket creation
- β Complete audit trail
- β CSV export capability
- β Free forever!
Time to deploy: 30-45 minutes Time saved per request: ~2-3 minutes ROI: Immediate! π
Ready? Follow the ULTIMATE_BEGINNER_GUIDE.md!