Skip to content

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)
Terminal window
wfx templates pingpong
wfx new pingpong --as my-pingpong
wfx dryrun my-pingpong

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.

  • 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
Input Type Default Required Meaning
message object yes
subscription object
# Step Kind Skills Gates
1 reply
Count the pongs in this chat’s memory
shell (run:)
2 send
Reply through whatsapp-sender
agent
3 save
Save what was said
shell (run:)

This template never stops for a person.