Shubham
NNovu
•Created by Shubham on 12/8/2024 in #💬│support
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?
1 replies
NNovu
•Created by Shubham on 12/8/2024 in #💬│support
Multiple WhatsApp Business Integration for Single Organisation
Use Cases:
1. Need to integrate multiple Whatsapp Business account in a Organisation.
2. Use Multiple Whatsapp Business account in a workflow trigger.
3 replies