Getting Started

Set up the AgentBox landing page locally, customize it for your project, and deploy — all in under 10 minutes.

Prerequisites

Setup Steps

1

Clone the Repository

git clone https://github.com/sauravbhattacharya001/getagentbox.git
cd getagentbox
2

Open Locally

No build step needed. Just open index.html directly:

# macOS
open index.html

# Windows
start index.html

# Linux
xdg-open index.html

Or use a local server for proper CSP headers:

# Python 3
python -m http.server 8000

# Node.js
npx serve .

# PHP
php -S localhost:8000
3

Customize Content

Edit index.html directly. Key sections to update:

4

Customize Chat Demos

Edit SCENARIOS in app.js to show your product's conversations:

var SCENARIOS = Object.freeze({
  myFeature: [
    { role: 'user', text: 'How do I use this?' },
    { role: 'bot',  text: 'It\'s easy! Just...' },
  ],
});

Add matching tab buttons in the .demo-tabs section of index.html.

5

Customize Styling

Edit styles.css to change colors, fonts, and layout:

/* Change the background gradient */
body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Change the accent color */
.cta-button {
    background: #00c853;  /* Green CTA */
}

/* Change card styling */
.feature {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}
6

Run Tests

npm install
npm test

# With coverage report
npm run test:coverage
7

Deploy

Choose your deployment method:

GitHub Pages (recommended):

  1. Push to GitHub
  2. Go to Settings → Pages → Source: "GitHub Actions"
  3. The pages.yml workflow deploys automatically

Docker:

docker build -t my-landing-page .
docker run -p 8080:80 my-landing-page

Any static host: Upload index.html, styles.css, and app.js to Netlify, Vercel, Cloudflare Pages, or any web server.

💡 Tip: The landing page is fully self-contained — index.html, styles.css, and app.js are the only files needed for production. Everything else (tests, Docker, CI) is optional tooling.

What's Next?


← Back to Docs · GitHub · MIT License