Skip to content

feat: add header and footer for interactive messages#219

Open
SathwikGuduguntla wants to merge 1 commit into
shridarpatil:masterfrom
SathwikGuduguntla:feat-interactive-header-footer
Open

feat: add header and footer for interactive messages#219
SathwikGuduguntla wants to merge 1 commit into
shridarpatil:masterfrom
SathwikGuduguntla:feat-interactive-header-footer

Conversation

@SathwikGuduguntla
Copy link
Copy Markdown

This Pull Request introduces support for Header and Footer parameters in WhatsApp Interactive Messages. Currently, the integration only supports the message "body," but the WhatsApp Business API allows for additional context through headers and footers, which significantly improves the User Experience (UX).

Key Changes
DocType Enhancement: Added two new fields, header_param and footer_param, to the WhatsApp Message DocType.

Dynamic UI: Implemented depends_on logic so these fields only appear when the content_type is set to interactive or button.

API Payload Integration: Updated the Python controller (whatsapp_message.py) to structure the JSON payload correctly, ensuring the header and footer objects are included in the interactive message type.

Use Cases
Headers: Useful for bolded titles or branding at the top of a list or button message.

Footers: Perfect for disclaimers, timestamps, or "Terms & Conditions" text that should be visible but less prominent than the main message.

#216. This issue has been solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant