pingpong
Pingpong — prove a WhatsApp subscription end to end
Answers every text in a chat with “pong #N”, counting from the conversation’s memory, through whatsapp-sender. Point a subscription at a test group to prove receive, route, reply and memory in one minute.
| Source | templates/pingpong/workflow.yaml |
| Category | debugging-ops |
| Trigger | called by other workflows · manual (wfx run) |
| Steps | 3 |
| Human approval before | none |
| Providers named | default (WFX_DEFAULT_PROVIDER) |
Use it
Section titled “Use it”wfx templates pingpongwfx new pingpong --as my-pingpongwfx dryrun my-pingpongWhat it does
Section titled “What it does”Reference handler for a WhatsApp subscription: reads this chat’s memory, replies “pong #N” through whatsapp-sender, and saves what was said so the next message in the chat continues the count.
What you fill in
Section titled “What you fill in”- copy whatsapp-sender too — this sends through it
- subscribe it: wfx sub add pingpong-test –channel <channel> –chat <test-group-jid> –workflow pingpong –allow <your-jid> –response auto
Inputs
Section titled “Inputs”| Input | Type | Default | Required | Meaning |
|---|---|---|---|---|
message |
object | yes | ||
subscription |
object |
| # | Step | Kind | Skills | Gates |
|---|---|---|---|---|
| 1 | replyCount the pongs in this chat’s memory |
shell (run:) |
||
| 2 | sendReply through whatsapp-sender |
agent | ||
| 3 | saveSave what was said |
shell (run:) |
Human gates
Section titled “Human gates”This template never stops for a person.