Skip to main content

tungsten-whatsapp

WhatsApp for Tungsten leads (needs tungsten-leads).

Three ways to send

Way Setup What you get
Links only None The WhatsApp button on a lead opens WhatsApp (app or web) with the chat ready.
Cloud API (official) A Meta app with WhatsApp Send texts and approved templates from the panel, get replies, delivered and read ticks.
WhatsApp Web (linked phone) A WAHA gateway Send from your own WhatsApp number, linked by QR code. Get replies.

Everything sent and received shows on the lead's timeline and in WhatsApp chats. New chats can become leads by themselves, and new leads can get a welcome message (for example only leads from Facebook).

Install

pip install tungsten-whatsapp
from tungsten_leads import LeadsPlugin
from tungsten_whatsapp import WhatsAppPlugin

panel = Panel(..., app_url="https://admin.example.com")
panel.plugin(LeadsPlugin())
panel.plugin(WhatsAppPlugin())
panel.create_tables(engine)

Then open WhatsApp setup in the panel and press Setup guide. It walks through every click for each way, with your own addresses filled in. The full guide, with common problems, is also in WhatsApp.

Cloud API

  1. At developers.facebook.com, create an app with the use case Connect with customers through WhatsApp, and add your phone number in API Setup.
  2. Make a permanent token: Business settings, System users, add an Admin user, give it full control of the app and the WhatsApp account, and generate a token that never expires with whatsapp_business_messaging and whatsapp_business_management.
  3. In WhatsApp setup, pick Cloud API (official), fill in the Phone number ID, the WhatsApp Business Account ID, the token and the App secret, and save.
  4. Press More, Register number once, with a 6-digit PIN.
  5. In the Meta app, open Use cases, Customize next to WhatsApp, then Configuration. Paste the Callback URL and Verify token shown on the setup page, then subscribe to messages.
  6. Publish the app, add a payment method, and press Check connection.

WhatsApp only lets you send free text within 24 hours of the person's last message. Outside that window, use an approved template (press More, Sync templates to load them). Meta charges per message.

WhatsApp Web

  1. On a server with Docker, set up the free WAHA gateway with its compose file:
    mkdir waha && cd waha
    wget -O docker-compose.yaml https://raw.githubusercontent.com/devlikeapro/waha/refs/heads/core/docker-compose.yaml
    touch .env
    # change "image: devlikeapro/waha-plus" to "image: devlikeapro/waha" (ARM server: devlikeapro/waha:arm), then:
    docker compose run --no-deps -v "$(pwd)":/app/env waha init-waha /app/env
    docker compose up -d
    
    Copy the API key it prints.
  2. In WhatsApp setup, pick WhatsApp Web, fill in the gateway URL (http://127.0.0.1:3000 on the same server, else an https address in front of it) and the API key, and save.
  3. Press Link phone, then scan the QR code on your phone: WhatsApp, Linked devices, Link a device.

WhatsApp Web is not an official API. Message people who expect it and keep bulk sends small, or WhatsApp may block the number. Shared hosting can't run Docker, so the gateway needs a VPS; the panel itself can stay on shared hosting.

More Tungsten plugins

Package What it adds Docs
tungsten-leads Leads list, stages, timeline and your own lead form fields README
tungsten-meta-leads Facebook and Instagram lead form leads, with one-click setup Guide
tungsten-mcp MCP server, so AI assistants like Claude can read and change your data Guide
tungsten-tickets Help desk: tickets, replies, notes, SLA and a customer support page Guide
tungsten-blog Blog built for SEO, GEO and AEO, with a live score, sitemap and llms.txt Guide
tungsten-seo-audit SEO audit of your website: score, fix tips, AI search checks, history Guide
tungsten-security-audit Security audit with a score and fix tips, plus a login log with lockout Guide

Core package: tungsten-admin. Website and docs: https://tungsten.prisminfoways.com/

Metadata

Release files for tungsten-whatsapp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tungsten-whatsapp 0.1.1
File Size Uploaded
tungsten_whatsapp-0.1.1.tar.gz 32.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tungsten-whatsapp 0.1.1
File Interpreter ABI Platform
tungsten_whatsapp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 64.4 kB

Release files / tungsten_whatsapp-0.1.1.tar.gz

Download URL tungsten_whatsapp-0.1.1.tar.gz
Size 32.9 kB
Tags Source
SHA-256 checksum
How to use checksums
765b1f4a712046bf5494f324feb98fb2f9fef341a5d6a5ef207e6940c34860ac
BLAKE2b-256 checksum
How to use checksums
87c0439901011b597974989e06d2576b9b43657d2089c93d8e0808ae46235881
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tungsten_whatsapp-0.1.1-py3-none-any.whl

Download URL tungsten_whatsapp-0.1.1-py3-none-any.whl
Size 31.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e544f257152ec6091677373e5cb16a624133a533f0c1eec44c586cc9c45c44c6
BLAKE2b-256 checksum
How to use checksums
36c45e70b4d6261f4fc3a3debe242ea99fc2b97d6fa2317111e5b56c14d6838d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page