Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Go to Haptik Website
  • Contact Us
  • Home
  • Bot Building
  • Whatsapp Bots

Sending WhatsApp Contact Cards via Haptik Bot

Written by Hitesh Singla

Updated on December 7th, 2022

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Build Deploy Analyse Manage Account Bot Deactivation
  • Bot Building
    Essentials Smart Skills Steps User Messages Bot Responses Entities Connections Customisations User feedback collection Testing Whatsapp Bots NLU Bot Maintenance
  • Smart Agent Chat
    Set up Admin Settings MyChats Section (Agent Inbox) Live Traffic Section Teams Section Archives Section Analytics Plans on Smart Agent Chat
  • Conversation Design
    Design Basics Design Guides Designing for Platforms Designing WhatsApp Bots
  • 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
    Web SDK WhatsApp Facebook Instagram Sunshine Conversation LINE Google Business Messages Telegram MS Teams Bot as an API iOS SDK Android SDK
  • External Agent Tool Setup
    Zendesk Chat Salesforce Service Cloud Freshchat Zoho NICE CXOne Gorgias
  • Analytics & Reporting
    Intelligent Analytics
  • Notifications
    SMS Notifications Success Measurement
  • Commerce Plus
    Catalog Integration Bot Building Guide Channel Deployments Unified ML Pipeline Documentation
  • Troubleshooting Guides
    Error Messages FAQs
  • Release Notes
+ More

Table of Contents

Overview Prerequisites Info Step 1: Define the JSON Parameters Step 2: Check Your Response

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.

Delete

Info

This message can only be sent in response to an incoming message from your customer.

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.

Name

Description

addresses

object

Optional.

Full contact address(es) formatted as an addresses object. The object can contain the following fields:

street string – Optional. Street number and name.

city string – Optional. City name.

state string – Optional. State abbreviation.

zip string – Optional. ZIP code.

country string – Optional. Full country name.

country_code string – Optional. Two-letter country abbreviation.

type string – Optional. Standard values are HOME and WORK.

birthday

Optional.

YYYY-MM-DD formatted string.

emails

object

Optional.

Contact email address(es) formatted as an emails object. The object can contain the following fields:

email string – Optional. Email address.

type string – Optional. Standard values are HOME and WORK.

name

object

Required.

Full contact name formatted as a name object. The object can contain the following fields:

formatted_name string – Required. Full name, as it normally appears.

first_name string – Optional*. First name.

last_name string – Optional*. Last name.

middle_name string – Optional*. Middle name.

suffix string – Optional*. Name suffix.

prefix string – Optional*. Name prefix.

*At least one of the optional parameters needs to be included along with the formatted_name parameter.

org

object

Optional.

Contact organization information formatted as an org object. The object can contain the following fields:

company string – Optional. Name of the contact's company.

department string – Optional. Name of the contact's department.

title string – Optional. Contact's business title.

phones

object

Optional.

Contact phone number(s) formatted as a phone object. The object can contain the following fields:

phone string – Optional. Automatically populated with the `wa_id` value as a formatted phone number.

type string – Optional. Standard Values are CELL, MAIN, IPHONE, HOME, and WORK.

wa_id string – Optional. WhatsApp ID.

urls

object

Optional.

Contact URL(s) formatted as URL object. The object can contain the following fields:

URL string – Optional. URL.

type string – Optional. Standard values are HOME and WORK.

Step 2: Check Your Response

Perform the operations as below on the linked WhatsApp number to check the response.


Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • What are WhatsApp Voice Notes?
  • Steps to create a WhatsApp Bot
  • How to Use WhatsApp Lists and Buttons
  • Introduction to WhatsApp Bots

Platform

  • Conversation Studio
  • Smart Skills
  • Advanced NLU
  • Intelligent Analytics
  • Omnichannel
  • Smart Agent Chat
  • Enterprise Security
  • Integrations

Solutions

  • Conversational Commerce
  • Lead Generation
  • Customer Care
  • WhatsApp
  • Conversational IVR
  • Google Business Messages

Industries

  • Retail/ E-Commerce
  • Financial Services
  • Travel & Hospitality
  • Telecom

Knowledge

  • ROI Calculator
  • Reports & Research
  • Case Studies
  • Webinars
  • ISAT
  • Tech Blog
  • Business Blog
  • Resources
  • Haptik v/s Yellow
  • Haptik v/s Liveperson
  • Haptik v/s IBM Watson
  • Haptik v/s Verloop
  • Conversations on AI

Company

  • Why Haptik
  • About Us
  • Careers
  • News & Media
  • Awards & Recognition
  • Contact Us
  • Partnerships
  • Investor Relations

Subscribe

Sign up to recieve the latest updates

Find us on

  • Twitter-footer
  • Linkedin-footer
  • YT-footer
  • Insta-footer
  • G2-footer
  • Facebook-footer

Knowledge Base Software powered by Helpjuice

Copyright © jio Haptik Technology Limited 2021 | Data Security & Privacy Policy | GDPR

North America | Asia Pacific | Africa | enterprise@haptik.ai

Definition by Author

0
0