Sending WhatsApp Contact Cards via Haptik Bot
- Getting Started
- Bot Building
- Smart Agent Chat
- Conversation Design
-
Developer Guides
Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
- Deployment
- External Agent Tool Setup
- Analytics & Reporting
- Notifications
- Commerce Plus
- Troubleshooting Guides
- Release Notes
Table of Contents
Overview
In this section, we will see how to enable the feature of sending WhatsApp contact cards via your Haptik bot and then, how to verify if the enablement for this feature has worked or not.
Prerequisites
We only require a Haptik Bot configured on WhatsApp channel.
Step 1: Define the JSON
Use the below JSON format as bot response on your bot to add WhatsApp Contact Cards on your bot. Use raw JSON HSL on the bot builder. Click here to learn more about it.
One can edit the required fields.
{ "type": "WHATSAPP_CONTACT", "contacts": [ { "addresses": [ { "city": "Mumbai", "country": "India", "country_code": "IN", "state": "Maharashtra", "street": "Andheri", "type": "Home", "zip": "400099" } ], "birthday": "birthday", "emails": [ { "email": "johndoe@personal.com", "type": "HOME" }, { "email": "johndoe@work.com", "type": "WORK" } ], "name": { "first_name": "John", "formatted_name": "John Doe", "last_name": "Doe", "suffix": "Mr." }, "org": { "company": "ABC Corp", "department": "Marketing", "title": "Director" }, "phones": [ { "phone": "9766094223", "wa_id": "9766094223", "type": "MAIN" }, { "phone": "+34534", "type": "HOME" }, { "phone": "+1121332", "type": "WORK" } ], "urls": [ { "url": "https://someurl.com", "type": "WORK" } ] } ], "to": "919699579052", "recipient_type": "individual" }
Parameters
Inside contacts, you can nest the following objects: addresses, emails, name, org, phone, and URLs. Pluralized objects are to be wrapped in an array as shown in the example below.
Step 2: Check Your Response
Perform the operations as below on the linked WhatsApp number to check the response.