configure_inapp_banner
Configure and publish on-site in-app popups or banners (center modal, top bar, bottom card) to show promotions or announcements to active website visitors without browser notification permission.
Instructions
Configure and publish an on-site In-App Popup or Banner (center modal, top sticky bar, or bottom slide-in card) rendered by the PushNotif SDK without requiring browser notification permission. Use this tool to display promotional popups or announcements to all active website visitors; do not use it to send OS lock-screen push notifications (use send_push_notification instead). Prerequisite: call list_apps first to obtain app_id. Requires PUSHNOTIF_API_KEY; saving configuration costs 0 credits, and each live visitor impression deducts 1 credit. Returns JSON { ok, app_id, inapp_enabled, inapp_style, inapp_trigger, inapp_freq }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | Target application ID in format app_xxxx (obtain from list_apps) | |
| inapp_body | Yes | Banner supporting message text (1 to 240 characters) | |
| inapp_freq | No | Per-visitor frequency cap: 'once_per_session' (default), 'once_per_day', 'cooldown_3h', 'cooldown_12h', 'once_per_week', or 'always' | |
| inapp_style | No | Visual layout style: 'modal' (center dialog), 'top_bar' (sticky top ribbon), or 'bottom_slide' (corner toast card) | |
| inapp_title | Yes | Banner headline text (1 to 100 characters) | |
| inapp_accent | No | Optional hex color code for the CTA button and accent border (default: '#0058BE') | |
| inapp_cta_url | No | Optional HTTPS URL opened when the CTA button is clicked | |
| inapp_enabled | No | Set true to activate the banner on the website, or false to pause it (default: true) | |
| inapp_trigger | No | Display trigger condition: 'immediate' (default), 'delay_5s', 'delay_10s', 'scroll_50', 'scroll_80', or custom DOM event 'event:<name>' | |
| inapp_cta_text | No | Optional call-to-action button label (e.g., 'Klaim Voucher →') |