WhatsApp & Phone Channels
WhatsApp Cloud API and Twilio phone -- your humanoid reaches everyone's pocket.
What you'll see
- Launch
rysh; write/show a skill file withcontacts.whatsapp(phone,api_key,business_id-- Cloud API) andcontacts.phone(number,provider: twilio,account_sid,auth_token), all secrets via${ENV_VAR}. - Double-Escape into rysh mode;
##humanoid spawn .rysh/humanoids/support.md. ##humanoid channel start support whatsappand##humanoid channel start support phone.##humanoid channels supportlists 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.