HomeTutorials › Humanoids
Humanoids

WhatsApp & Phone Channels

#083 0:48 Part of the Rysh video series

WhatsApp Cloud API and Twilio phone -- your humanoid reaches everyone's pocket.

WhatsApp & Phone Channels — 0:48 walkthrough

What you'll see

  1. Launch rysh; write/show a skill file with contacts.whatsapp (phone, api_key, business_id -- Cloud API) and contacts.phone (number, provider: twilio, account_sid, auth_token), all secrets via ${ENV_VAR}.
  2. Double-Escape into rysh mode; ##humanoid spawn .rysh/humanoids/support.md.
  3. ##humanoid channel start support whatsapp and ##humanoid channel start support phone.
  4. ##humanoid channels support lists both channels, now live.

Commands shown

rysh
mkdir -p .rysh/humanoids
echo '---' > .rysh/humanoids/support.md
echo 'name: support' >> .rysh/humanoids/support.md
echo 'contacts:' >> .rysh/humanoids/support.md
echo '  whatsapp:' >> .rysh/humanoids/support.md
echo '    phone: +1234567890' >> .rysh/humanoids/support.md
echo '    api_key: WHATSAPP_API_KEY' >> .rysh/humanoids/support.md
echo '    business_id: 123456' >> .rysh/humanoids/support.md
echo '  phone:' >> .rysh/humanoids/support.md
echo '    number: +1234567890' >> .rysh/humanoids/support.md
echo '    provider: twilio' >> .rysh/humanoids/support.md
echo '    account_sid: TWILIO_SID' >> .rysh/humanoids/support.md
echo '    auth_token: TWILIO_TOKEN' >> .rysh/humanoids/support.md
echo '---' >> .rysh/humanoids/support.md
echo 'You help customers over WhatsApp and phone.' >> .rysh/humanoids/support.md
cat .rysh/humanoids/support.md
##humanoid spawn .rysh/humanoids/support.md
##humanoid channel start support whatsapp
##humanoid channel start support phone
##humanoid channels support

Keys used

EnterEscape

Transcript

0:00WhatsApp Cloud API and Twilio phone -- your humanoid reaches everyone's pocket.

0:03Launch rysh. WhatsApp uses the Cloud API; phone uses Twilio. Both go in the contacts block of the skill file.

0:10WhatsApp needs a phone, an api_key, and a business_id. Phone needs a number, the provider twilio, an account_sid, and an auth_token -- every secret pulled in with the ENV_VAR syntax.

0:24Double-Escape into rysh mode, spawn the humanoid, then start the WhatsApp channel.

0:33Start the phone channel the same way -- name, then the channel type.

Key takeaway
WhatsApp uses the Cloud API and phone uses Twilio; both are configured in contacts with ${ENV_VAR} secrets and started/stopped per channel type.