Correo electrónico
Resumen
Sección titulada «Resumen»El provider de mensajería Email permite que tu trabajador digital se comunique por correo electrónico. Soporta:
- Envío de correos electrónicos
- Recepción de correos electrónicos (mediante webhooks)
- Formato HTML
- Adjuntos
Configuración
Sección titulada «Configuración»-
Configura los ajustes de 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"}} -
Configura la entrada (opcional)
Para recibir correos electrónicos, configura un webhook con tu provider de correo:
- SendGrid Inbound Parse
- Mailgun Routes
- AWS SES
-
Ejecuta la configuración
Ventana de terminal gtc setup --answers answers.json ./my-bundle
Opciones de configuración
Sección titulada «Opciones de configuración»| Opción | Requerido | Descripción |
|---|---|---|
enabled | Sí | Habilita/deshabilita el provider |
smtp_host | Sí | Hostname del servidor SMTP |
smtp_port | Sí | Puerto SMTP (normalmente 587 o 465) |
smtp_user | Sí | Nombre de usuario SMTP |
smtp_password | Sí | Contraseña SMTP |
from_address | Sí | Dirección predeterminada del remitente |
from_name | No | Nombre mostrado para la dirección del remitente |
webhook_url | No | Endpoint del webhook entrante |
Funcionalidades
Sección titulada «Funcionalidades»Enviar texto plano
Sección titulada «Enviar texto plano»- 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."Enviar HTML
Sección titulada «Enviar HTML»- 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>Con adjuntos
Sección titulada «Con adjuntos»- 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"CC y BCC
Sección titulada «CC y BCC»- 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."Manejo de correo entrante
Sección titulada «Manejo de correo entrante»name: handle_emailversion: "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