Lewati ke konten

Email

Provider messaging Email memungkinkan digital worker Anda berkomunikasi melalui email. Provider ini mendukung:

  • Mengirim email
  • Menerima email (melalui webhook)
  • Pemformatan HTML
  • Lampiran

messaging-email adalah provider SMTP keluar. Provider ini tidak melakukan polling mailbox IMAP atau POP3. Email masuk biasanya ditangani melalui event provider atau webhook provider, seperti SendGrid Inbound Parse, Mailgun Routes, AWS SES, atau Microsoft Graph subscriptions jika didukung oleh pack yang terpasang.

  1. Konfigurasikan Pengaturan SMTP

    answers.json
    {
    "messaging-email": {
    "enabled": true,
    "smtp_host": "smtp.example.com",
    "smtp_port": 587,
    "smtp_user": "your-email@example.com",
    "smtp_password": "your-password",
    "from_address": "support@example.com",
    "from_name": "Support Bot"
    }
    }
  2. Konfigurasikan Inbound (Opsional)

    Untuk menerima email, siapkan webhook dengan provider email Anda:

    • SendGrid Inbound Parse
    • Mailgun Routes
    • AWS SES
  3. Jalankan Setup

    Terminal window
    gtc setup --answers answers.json ./my-bundle
OpsiWajibDeskripsi
enabledYaAktifkan/nonaktifkan provider
smtp_hostYaHostname server SMTP
smtp_portYaPort SMTP (biasanya 587 atau 465)
smtp_userYaUsername SMTP
smtp_passwordYaPassword SMTP
from_addressYaAlamat pengirim default
from_nameTidakNama tampilan untuk alamat pengirim
webhook_urlTidakEndpoint webhook inbound
- id: send_email
type: reply
config:
to: "{{user_email}}"
subject: "Your Support Request"
message: "Thank you for contacting us. We'll get back to you shortly."
- id: send_html_email
type: reply
config:
to: "{{user_email}}"
subject: "Welcome!"
html: |
<html>
<body>
<h1>Welcome to Our Service!</h1>
<p>Thank you for signing up.</p>
<a href="https://example.com/start">Get Started</a>
</body>
</html>
- id: send_with_attachment
type: reply
config:
to: "{{user_email}}"
subject: "Your Report"
message: "Please find your report attached."
attachments:
- url: "https://example.com/report.pdf"
filename: "report.pdf"
- id: send_copy
type: reply
config:
to: "{{user_email}}"
cc: "manager@example.com"
bcc: "archive@example.com"
subject: "Support Update"
message: "Your ticket has been resolved."
flows/on_email.ygtc
name: handle_email
version: "1.0"
nodes:
- id: process
type: reply
config:
to: "{{from_address}}"
subject: "Re: {{subject}}"
message: "Thank you for your email. We've received your message."
triggers:
- type: email
target: process