N
Novu2w ago
Shubham

Triggers with Whatsapp overrides - Only Template working: interactive & others are not working

Novu Event interface has these support export type IWhatsappOverrides = { template?: { name: string; language: { code: string; }; components?: IWhatsappComponent[]; }; } & { [key in 'audio' | 'document' | 'image' | 'sticker' | 'video']?: IWhatsappMedia; } & { interactive?: { type: 'button' | 'catalog_message' | 'list' | 'product' | 'product_list' | 'flow'; action: { button?: string; buttons?: { type: 'reply'; title: string; id: string; }[]; catalog_id?: string; product_retailer_id?: string; sections?: IWhatsappSections[]; mode?: 'draft' | 'published'; flow_message_version?: '3'; flow_token?: string; flow_id?: string; flow_cta?: string; flow_action?: string; flow_action_payload?: { screen: string; data?: { [key: string]: string; }; }; }; header?: { type: 'text' | 'image' | 'video' | 'document'; document?: IWhatsappMedia; image?: IWhatsappMedia; text?: string; video?: IWhatsappMedia; }; body?: { text: string; }; footer?: { text: string; }; }; }; I’ve tried all possible combinations, and while the template works as expected and triggers the correct notification, other data keys are resulting in undefined notifications. Could you confirm if these keys are supported, or if there's a specific way to structure the data for them to work properly?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server