HomeTutorials › Humanoids
Humanoids

Email Channel

#082 0:43 Part of the Rysh video series

Give your humanoid an inbox -- it reads incoming mail and writes the replies.

Email Channel — 0:43 walkthrough

What you'll see

  1. Launch rysh; write/show a skill file with contacts.email (address, imap_host/imap_port, smtp_host/smtp_port, username/password as ${ENV_VAR}).
  2. Double-Escape into rysh mode; ##humanoid spawn .rysh/humanoids/support.md -- gains email_list / email_read / email_send tools.
  3. ##humanoid channel start support email -- begins polling the inbox, replying via SMTP.
  4. ##humanoid channels support -- confirm the inbox is 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 '  email:' >> .rysh/humanoids/support.md
echo '    address: support@example.com' >> .rysh/humanoids/support.md
echo '    imap_host: imap.example.com' >> .rysh/humanoids/support.md
echo '    smtp_host: smtp.example.com' >> .rysh/humanoids/support.md
echo '    username: EMAIL_USER' >> .rysh/humanoids/support.md
echo '    password: EMAIL_PASS' >> .rysh/humanoids/support.md
echo '---' >> .rysh/humanoids/support.md
echo 'You answer support email professionally.' >> .rysh/humanoids/support.md
cat .rysh/humanoids/support.md
##humanoid spawn .rysh/humanoids/support.md
##humanoid channel start support email
##humanoid channels support

Keys used

EnterEscape

Transcript

0:00Give your humanoid an inbox -- it reads incoming mail and writes the replies.

0:03Launch rysh. The email channel lives under contacts.email with IMAP for reading and SMTP for sending.

0:10Set the address, IMAP host and port, SMTP host and port, and the username and password as ENV_VARs. Cat it to see the shape.

0:22Double-Escape into rysh mode and spawn it. The humanoid gains email_list, email_read, and email_send tools.

0:31Start the email adapter and the humanoid begins polling the inbox, turning each new message into a prompt and mailing back its answer.

Key takeaway
contacts.email configures IMAP (read) and SMTP (send); the humanoid uses email_list/email_read/email_send and ##humanoid channel start <name> email to go live.