On your computer, with your data

Install Zappion.
Start with the demo.

At the end you'll have an inbox in your browser and a test organization. About 10 minutes to run it locally, much of it spent downloading Docker images.

Before you start

A terminal is a window where you type instructions for your computer. Run the commands below in it. The prerequisite guides still need to be completed for each system.

Node 20+

Runs the JavaScript programs used by the installer and the web version. The README requires version 20 or later.

Official install guide →

Windows

The installer is a Bash script, not a PowerShell command. The Windows app guide covers the native client, not running this installer.

Choosing between WSL and Git Bash, installing the prerequisites and opening a terminal: not documented in the sources consulted. Confirm before continuing on Windows.

Install

Make sure Docker is running. Use “Copy” and paste the block into the terminal. The first line downloads the code, the second enters the zappion folder, and the third runs the installer.

Local install
git clone https://github.com/victorgalletti/zappion.git cd zappion scripts/setup-local.sh

The script is safe to run again. It checks for Docker, the Supabase CLI, Node and pnpm before it starts.

  1. 1/4 Env files. Creates the configuration files: api/supabase/functions/.env, with local demo values, and web/.env.local. Existing files are kept.
  2. 2/4 Starting Supabase. Starts Supabase in Docker. The first time, it downloads the images (the packages that contain the services). Then it writes the address and public key to web/.env.local.
  3. 3/4 Installing the web’s dependencies. Downloads the web version's libraries with pnpm.
  4. 4/4 Creating the demo login and organization. Runs seed-dev.mjs to create the login, the demo organization and a fictional phone number.
What you'll see on screen
==> 1/4 Env files
   created api/supabase/functions/.env with local demo values (no real Meta App)
   created web/.env.local

==> 2/4 Starting Supabase (the first run downloads its Docker images)
   web/.env.local points to http://127.0.0.1:54321

==> 3/4 Installing the web's dependencies

==> 4/4 Creating the demo login and organization

Done. Start the web and sign in:

Open Zappion

When “Done” appears, run the command below. It starts the web version. Then open the address in your browser.

Start the web version
pnpm --dir web dev

Open http://localhost:3100

The script creates the demo login. Open the file web/.env.local: the email is in TEST_USER_EMAIL and the password in TEST_USER_PASSWORD. Use those values to sign in. The terminal also shows the email at the end of the install.

How to find and open the configuration file on each system: still to be documented.

To browse the database, Supabase Studio is at http://127.0.0.1:54323.

Try it without a number

In another terminal, inside the zappion folder, run the command below. It simulates a message received from Meta. The message appears in the inbox; replies aren't sent because the number is fictional.

Simulate a message
node scripts/send-webhook.mjs inbound --phone-number-id 100000000000001 --business-number 5511900000000 --text "hi"

Before connecting a real number, use an organization of your own, without an AI agent. The sample organization has an agent that replies by itself. Without an OpenAI key, it saves an error message as the reply; with a real number, that message would be sent.

Connect your number

Coexistence means keeping the number in the WhatsApp Business app on your phone and seeing the conversations in Zappion too.

1. Your own Meta App

  1. Create a Meta App with the WhatsApp product. Fill in the values in api/supabase/functions/.env, following .env.example.
  2. In the api/ folder, restart Supabase with supabase stop && supabase start to load the values.
  3. Meta needs a public HTTPS address to deliver messages. Expose port 54321 with a tunnel such as ngrok or Cloudflare Tunnel. Save the address in WEBHOOK_PUBLIC_URL.
  4. In the Meta App, use <public URL>/functions/v1/whatsapp-webhook as the webhook (the address that receives Meta's notifications) and the WHATSAPP_VERIFY_TOKEN from the .env file.
  5. Subscribe to the events messages, smb_message_echoes, history, smb_app_state_sync, account_update and user_id_update.
  6. In Zappion, go to Settings › Instances › Connect number › Manual. Enter the phone number ID, the WABA (WhatsApp Business Account) and a permanent system-user token.

Meta screenshots: creating the app, the values, the webhook and event subscription. App and tunnel creation guide not detailed in the README.

2. A number already on the API

Use the manual connection: Settings › Instances › Connect number › Manual. You need the phone number ID, the WABA and the permanent system-user token.

The app and the webhook must be set up as in the walkthrough next to this one.

The README has no separate walkthrough for moving a number that's already on the API, nor does it detail how to get the IDs and the token. Confirm these steps.

Meta screenshot: where to find the phone number and WABA IDs.

3. Embedded Signup

A connection flow in a Meta pop-up window, so your customer can connect their own number. It requires a Meta-approved Tech Provider and the signup/ page hosted on an HTTPS domain.

  1. Copy the configuration with cp signup/.env.example signup/.env.
  2. Start the page with node signup/server.mjs.

The address of that page goes in NEXT_PUBLIC_SIGNUP_URL, as in web/.env.example.

Tech Provider approval and HTTPS hosting: walkthrough not detailed in the sources. Screenshot of the Meta pop-up pending.

History and contacts can be synced once, within 24 hours of connecting. The automatic request only exists in Embedded Signup. Outside it, the README points to POST /{phone_number_id}/smb_app_data.

Prefer the cloud?

You can use your own Supabase Cloud project for the database and the backend, the part that processes requests. This is different from Zappion Cloud, which hasn't opened yet.

The script needs the Supabase CLI, jq and curl. It also needs your Supabase personal access token, the database password and a filled-in api/supabase/functions/.env.

The personal access token is at Supabase › Account › Access Tokens. The project reference is the identifier in the address https://supabase.com/dashboard/project/<ref>. The database password is the one you set when you created the project.

Replace the three placeholders below with your own values before running it. Don't share your credentials.

Set up Supabase Cloud
SUPABASE_ACCESS_TOKEN=... SUPABASE_DB_PASSWORD=... \ scripts/setup-cloud.sh --project-ref <ref>
  1. Links api/ to the project.
  2. Applies the database changes. Demo data does not go to the cloud.
  3. Stores in the Vault the secrets the database uses to call the functions.
  4. Deploys the backend functions.
  5. Sets the function secrets from the environment file.

What's still up to you

  1. Under Authentication › URL Configuration, set Site URL and Redirect URLs to the address of the web version.
  2. Under Authentication › OAuth Server, enable the server, the /oauth/consent path and dynamic registration so Claude or ChatGPT can access MCP.
  3. Configure the webhook in Meta with the address the script prints, or use Settings › Meta App › Configure webhook automatically in Zappion.
  4. Host web/ on a service that runs Next.js. Set NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY and NEXT_PUBLIC_SIGNUP_URL to the values shown at the end of the script.

How to create the project, install jq/curl, host the web version and create the first login in the cloud: beginner-friendly instructions are missing from the sources consulted.

The script accepts --env-file <path> for a different secrets file and --dry-run to only show what it would do.

Got an error?

“Docker is not running”

The script couldn't reach Docker. Make sure Docker is running before you run the install again.

“is not installed”

A required tool wasn't found. The local installer checks for docker, supabase, node and pnpm; the cloud one checks for supabase, jq and curl. Go back to the prerequisites.

Could not read the Supabase address and key

The installer stops if it can't find the URL and key in the output of supabase status. The sources have no recovery procedure for this error.

The cloud script asks for the project reference or credentials

Pass --project-ref with the project identifier (20 lowercase letters and digits). Set SUPABASE_ACCESS_TOKEN and SUPABASE_DB_PASSWORD. The secrets file must also exist.

The test message arrives, but the reply fails

The demo number is fictional. It receives the simulated events but doesn't send real messages.

I connected a real number, but nothing arrives

The README warns that a webhook that's down doesn't raise an alert. Check the public address and the app's subscription on the WABA with GET /{waba-id}/subscribed_apps. How to run that query: a beginner-friendly walkthrough is missing.

An automatic reply with an AI error showed up

The sample organization has an AI agent. Without the OpenAI key, it saves the error as the reply. For a real number, use an organization of your own, without an agent.

Don't want to install anything?

Zappion Cloud will take care of the hosting. It's coming soon.

Get notified when Cloud opens

One email, when it opens. That's it.