A simple HTML/CSS/JS demo showing how to integrate Slack using Airweave's white label OAuth2 flow.
- Clone the Airweave repository:
git clone https://github.com/airweave-ai/airweave.git
cd airweave
- Start the Airweave backend:
chmod +x start.sh
./start.sh
- Create the white label integration. This will create a white label integration for Slack and put the white label id in the
public/app.js
file. Typically you would do this in the Airweave UI.
chmod +x bin/create-white-label.sh
./bin/create-white-label.sh
- Serve the demo app (using any static file server, e.g., Python's built-in server):
cd public
python3 -m http.server 3000
- Open http://localhost:3000 in your browser
public/index.html
- Main page with connect buttonpublic/callback.html
- OAuth callback pagepublic/styles.css
- Stylingpublic/app.js
- Main JavaScript for OAuth flowpublic/callback.js
- Callback handlingbin/create-white-label.sh
- Script to create white label integration