Merge pull request #39 from ArnasDon/fix/automations-welcome-template-uses-first-inbound

fix(automations): Welcome Message template uses first_inbound_message
This commit is contained in:
Arnas Donauskas 2026-04-17 21:54:28 +03:00 committed by GitHub
commit 98751b8fe6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,7 +33,12 @@ export const AUTOMATION_TEMPLATES: Record<TemplateSlug, AutomationTemplateDefini
slug: 'welcome_message',
name: 'Welcome Message',
description: 'Auto-reply to first-time contacts with a greeting.',
trigger_type: 'new_contact_created',
// first_inbound_message (added in PR #33) catches both brand-new
// contacts AND manually-added/imported contacts on their first-ever
// reply, which is what a user setting up a "welcome" automation
// almost always wants. new_contact_created would miss the
// manually-imported case.
trigger_type: 'first_inbound_message',
trigger_config: {},
steps: [
{