Skip to content

Domain deep dive — Automation & communications

Single D1 narrative for engineers changing transactional email, notification behavior, or DocuSign send queues. It ties together:

In scopeOut of scope (link instead)
Auto Email rules, Email Templates Configuration, Mandrill settings/logsIn-app Chat / unrelated messaging products
DocuSign Email Queue (+ child tables)DocuSign account billing — vendor console
Email Notification / Notification LKAFull marketing ESP strategy
Frappe Email Queue behaviorUpstream Frappe mail tuning — ERPNext docs
Sub-themeExamples
Auto emailauto_email_configuration, auto_emails, auto_email_active, auto_email_company_types, auto_email_cron_log
Templatesemail_templates_configuration
Mandrillmandrill_email_settings, mandrill_email_log
DocuSign outbounddocusign_email_queue, docusign_email_queue_document, docusign_email_queue_recipient
Genericemail_data, email_notification, email_notification_log, notification_lka

Index: automation-comms.

LayerPrimary locations
Scheduled generationtasks.pygenerate_auto_emails_all (see Schedulers)
Billing emailstasks.pyhandle_billing, send_payment_success_emailEmail Templates Configuration by service_type (Billing flow)
DocuSignapi/docusign.py, DocuSign Email Queue controllers
Hooks (disabled)hooks.pyAuto Email Configuration on_updaterefresh_application_email_config commented (Doc events)

Daily 08:00

generate_auto_emails_all

Auto Email / templates

Email Queue / provider

PriorityDocType keysRationale
P1 — Overlays presentauto_email_configuration, email_templates_configuration, docusign_email_queueCore routing, templates, DocuSign pipeline
P2auto_emails, mandrill_email_settings, email_notification, notification_lkaVolume and provider-specific debugging
P3Child tables (docusign_email_queue_*), auto_email_cron_log, mandrill_email_logTrace rows; overlay if support load is high
SymptomFirst checks
No auto emails at 08:00Scheduler running; Error Log in generate_auto_emails_all; Schedulers
Wrong template after BillingEmail Templates Configuration service_type and Billing fields (Billing flow)
DocuSign stuckDocuSign Email Queue status, api/docusign.py, provider dashboard
AGM + email regressionsDo not re-enable broken AGM on_update auto-email without AGM & scheduler sign-off

Logs: Frappe Error Log, Email Queue, Mandrill logs DocType, Scheduled Job Log.