Zum Inhalt springen

E-Mail

Der E-Mail-Messaging-Provider ermöglicht Ihrem digitalen Worker die Kommunikation per E-Mail. Er unterstützt:

  • E-Mails senden
  • E-Mails empfangen (über Webhooks)
  • HTML-Formatierung
  • Anhänge
  1. SMTP-Einstellungen konfigurieren

    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. Eingehende E-Mails konfigurieren (optional)

    Für den Empfang von E-Mails richten Sie bei Ihrem E-Mail-Provider einen Webhook ein:

    • SendGrid Inbound Parse
    • Mailgun Routes
    • AWS SES
  3. Setup ausführen

    Terminal-Fenster
    gtc setup --answers answers.json ./my-bundle
OptionErforderlichBeschreibung
enabledJaProvider aktivieren/deaktivieren
smtp_hostJaHostname des SMTP-Servers
smtp_portJaSMTP-Port (typischerweise 587 oder 465)
smtp_userJaSMTP-Benutzername
smtp_passwordJaSMTP-Passwort
from_addressJaStandard-Absenderadresse
from_nameNeinAnzeigename für die Absenderadresse
webhook_urlNeinInbound-Webhook-Endpunkt
- 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