Rayzing AI Help Documentation
  • 🏠Introduction
  • πŸ“’Rayzing Resource Center
    • πŸƒβ€β™‚οΈHow Rayzing works?
      • πŸ“–Starting with Rayzing
      • πŸ“–Bot Management
        • πŸ“–Create new Bot
          • πŸ“–Website, Live chat or Landing Page Bots
          • πŸ“–WhatsApp Bot Creation with Manual Onboarding
            • βœ…Prerequisites for WhatsApp Bots
            • πŸ”€Create a Meta App
            • βœ”οΈRegister & Verify your WhatsApp Number
            • πŸ”—Subscribe WA webhook with Rayzing
            • πŸ’³Update WA account Payment Method
            • πŸ¦Έβ€β™€οΈAssign System User to WhatsApp Account
            • πŸ“ƒGetting all the necessary details from Meta Developer Dashboard
          • πŸ“–Make Your Telegram Chatbot
        • πŸ“–Edit Your Chat Flow
        • πŸ“–Train Your AI Chatbot
          • πŸ“–Train your AI chatbot using websites
          • πŸ“–Train your AI chatbot by uploading files.
          • πŸ“–Train your AI chatbot using frequently asked questions (FAQs).
          • πŸ“–Train your bot using the conversation history.
          • πŸ“–Train your AI chatbot using other sources.
        • πŸ“–Bot Settings
          • πŸ“–Website Bot settings
            • πŸ“–Design
            • πŸ“–General
            • πŸ“–Alerts
            • πŸ“–Triggers
            • πŸ“–User Access
            • πŸ“–Chat Window
            • πŸ“–AI Settings
          • πŸ“–WhatsApp chatbot Settings
            • πŸ“–General
            • πŸ“–Alerts
            • πŸ“–AI Settings
          • πŸ“–Telegram Bot Settings
            • πŸ“–General
            • πŸ“–AI Settings
          • πŸ“–Facebook Bot Settings
            • πŸ“–General
            • πŸ“–AI Settings
        • πŸ“–Marketing Automation
          • πŸ“–Broadcasts on WhatsApp, Telegram & Facebook
          • πŸ“–Drip Campaigns on WhatsApp, Telegram & Facebook
          • πŸ“–Facebook Auto-Reply
        • πŸ“–Install your Website Chatbot
        • πŸ“–3rd Party Apps Integrations
          • Agile CRM integration with Rayzing
          • Apptivo CRM integration with Rayzing
          • Autopilot CRM integration with Rayzing
          • Bitrix24 CRM Integration with Rayzing
          • CalendarHero integration with Rayzing
          • Capsule CRM integration with Rayzing
          • Chakra CRM integration with Rayzing
          • Close CRM integration with Rayzing
          • Copper CRM integration with Rayzing
          • Drip CRM integration with Rayzing
          • EngageBay CRM integration with Rayzing
          • Drip CRM integration with Rayzing
          • ExtraaEdge integration with Rayzing
          • FirstPromoter integration with Rayzing
          • Flowlu integration with Rayzing
          • Freshworks CRM integration with Rayzing
          • Freshdesk CRM integration with Rayzing
          • Frontapp integration with Rayzing
          • GetResponse integration with Rayzing
          • Go High Level Integration with Rayzing
          • Google Analytics integration with Rayzing
          • Google Calendar Integration with Rayzing
          • Google Contacts Integration with Rayzing
          • Google Tasks integration with Rayzing
          • Groove CRM integration with Rayzing
          • Google Sheets integration with Rayzing
          • Helpcrunch CRM integration with Rayzing
          • HelpShift integration with Rayzing
          • Hubspot CRM integration with Rayzing
          • Infobip CRM integration with Rayzing
          • Jira CRM integration with Rayzing
          • Insightly CRM integration with Rayzing
          • MoEngage CRM integration with Rayzing
          • NetHunt integration with Rayzing
          • Nimble CRM integration with Rayzing
          • Nutshell CRM integration with Rayzing
          • Onpipeline integration with Rayzing
          • Nocrm integration with Rayzing
          • Pipedrive CRM integration with Rayzing
          • Salesflare CRM integration with Rayzing
          • SendInBlue integration with Rayzing
          • Shipway Integration with Rayzing
          • Wealthbox CRM integration with Rayzing
          • SupportBee CRM integration with Rayzing
          • Zendesk CRM integration with Rayzing
          • Zoho CRM integration with Rayzing
          • Zoho Desk integration with Rayzing
          • Zoho Projects integration with Rayzing
      • πŸ“–Inbox
        • πŸ“–Managing Contacts, Chats & Conversation
        • πŸ“–Creating Groups
      • πŸ“–Teams
      • πŸ“–Subscriptions
      • πŸ“–My Account
        • πŸ“–Configure Custom Attribute
        • πŸ“–Configure Tags
        • πŸ“–Configure Chat Status
      • πŸ“–Notifications
    • ❓Frequently asked questions (FAQs)
      • Onboarding FAQs
      • Bot Installation FAQs
      • Inbox FAQs
      • Profile, Team & Notifications FAQs
      • Analytics FAQs
      • Chat Flow FAQs
      • Bot Settings FAQs
      • WhatsApp FAQs
      • Subscription FAQs
      • ChatGPT FAQs
    • πŸ› οΈCommon Errors & Troubleshooting
  • πŸ“–Product Guides & Training
    • πŸ‘©β€πŸ’»WhatsApp Cloud API by Meta
      • βš™οΈSetting Up Your Facebook Business Manager
      • πŸ’°Meta Conversation Pricing for WhatsApp Cloud API
      • πŸ‘§Update WhatsApp Bot Profile
      • βœ…Getting a green tick on WhatsApp
    • βš™οΈWhatsApp Bot Creation with Automated onboarding
    • πŸ’‘Must know-how of Rayzing
      • πŸ”€Manage & Use Custom Attributes
      • πŸ–₯️Call external APIs in your chat flows
      • πŸ‘¨β€πŸ’ΌManging team roles & Users
      • πŸͺ„Unlock Rayzing AI
      • πŸ“¨Send WhatsApp notifications using the Rayzing APIs
  • πŸ› οΈAPI References
    • πŸ“„Contacts & Chats APIs
      • Get All Contacts
      • Getting Groups/Segments
      • Add WhatsApp Contact
      • Delete WhatsApp Contact
      • Website Contacts & Meta Data
    • πŸ“„WhatsApp Cloud API
      • GET Templates List
      • POST WhatsApp Template Message
      • POST Send Message API
Powered by GitBook
On this page
  • Get the essentials first!
  • API References
  • Create a lead in the Rayzing
  • API to update a chat/lead data
  • Get leads listing and Its meta data
  • API to get listing of chats/leads
  • Got any questions?
  1. API References
  2. Contacts & Chats APIs

Website Contacts & Meta Data

This section contains the Leads and Chat API references

PreviousDelete WhatsApp ContactNextWhatsApp Cloud API

Last updated 1 year ago

Get the essentials first!

To use the Rayzing APIs, You need to insure that you have following details with you.

A. UUID - You can get the UUID from the local web session storage as show in the image below:

B. Bot ID & User ID: One can get the Bot ID and User ID from your Bot Script or Bot page URL. Below is the sample Example.

For Chatbot page URL

// Chatbot Page URL Structure

https://page.rayzing.ai/BotId/CustomerId

// The first value after .com is the BotId and second value is the CustomerId.

For Chatbot Script

// Chatbot Script Structure

<script id="rayzing-messenger-widget" src="https://cdn.rayzing.ai/rayzing.js" defer>BotId,CustomerId</script>

// The first value after defer> is the BotId & second value is the CustomerId.

C. Auth Token: We haven't automated everything yet. Please contact our support team to get the same.

Now you are ready to run the POC

API References

Please use the below APIs in order to play with your leads and chat data.

Create a lead in the Rayzing

As soon as any user opens up the Bot, It creates one UUId; pass the same along with the other required details to create and update the lead's details.

API to update a chat/lead data

PUT https://api.v7.express-chat.ai/inbox/direct/lead

As soon as any user opens up the Bot, It creates one UUId; pass the same along with the other required details to create and update the lead's details.

Headers

Name
Type
Description

x-bp-token*

String

API Token

Request Body

Name
Type
Description

uuid*

String

Unique ID of a chat user

botId*

String

Unique ID of the bot

customerId*

String

Unique ID of the customer account

agentId

Boolean

Unique ID of the agent assigned

status

String

Valid status for the chat. Available values: 'OPEN', 'INPROGRESS', 'REVIEW', 'ONHOLD', 'DEPENDANCY', 'CLOSED'

picture

String

A valid image HTTP URL

name

String

Name of the lead

email

String

Email of the lead

phone

String

Phone number of the lead

dialCode

String

Dial Code including "+" sign

notes

Array<{title: string, description: string}>

Additional notes for the chat

tags

Array<String>

Additional tags for the chat

attributes

Array<{key: string, value: string}>

Custom attributes for the chat

{
    "success": true,
    "message": "ok",
    "code": 200
}
{
    // Response
}
{
    // Response
}

Get leads listing and Its meta data

To get the listing of the leads and its meta data, Hit the below API with mandatory details.

API to get listing of chats/leads

GET https://api.v7.express-chat.ai/inbox/direct/chats

To get the listing of the leads and its meta data, Hit the below API with mandatory details.

Query Parameters

Name
Type
Description

botId*

String

Unique ID of the bot

customerId*

String

Unique ID of the customer account

page*

String

Page number

type*

String

"lead" to fetch only leads

"non-lead" to fetch non lead chats

Headers

Name
Type
Description

x-bot-token*

String

API Token

{
    "success": true,
    "message": "ok",
    "data": [
        {
            "_id": "63d9ffa77a8d152facbe2f2f",
            "uuid": "7e88d192-9b20-4035-9b68-d4ac3d58a34f",
            "createdAt": "2023-02-01T05:59:03.533Z",
            "isOnline": false,
            "lastMessage": {
                "at": "2023-02-01T06:00:20.000Z",
                "by": "bot",
                "text": "Welcome to BotPenguin. I am here to help you."
            },
            "lastSeenAt": "2023-02-01T06:00:21.000Z",
            "profile": {
                "notes": [
                    {
                        "title": "Sample title",
                        "description": "Sample description",
                        "_id": "63db5c4abcbc3be2e95b20ae"
                    }
                ],
                "userDetails": {
                    "name": "Sample name",
                    "picture": "my-picture",
                    "contact": {
                        "email": "Sample email",
                        "phone": {
                            "number": "Sample number",
                            "prefix": "91"
                        }
                    },
                    "city": "Sample city",
                    "country": "Sample country",
                    "gender": "MALE",
                    "tags": [
                        "Sample tag"
                    ],
                    "attributes": [
                        {
                            "key": "ID",
                            "value": "BP001"
                        }
                    ]
                }
            },
            "status": "INPROGRESS",
            "updatedAt": "2023-02-02T06:46:34.119Z",
            "websiteVisits": 1,
            "_agentAssigned": "631aa793bcfa100487d13d0d"
        }
    ],
    "code": 200
}
{
    // Response
}
{
    // Response
}

If you have any questions, you can look into our repository of FAQs, most likely, you will find your answer here, If not, write us at support@rayzing.ai

Got any questions?

πŸ› οΈ
πŸ“„
❓
How to get the UUDI