LogoLogo
WebsiteGuide & TutorialBlogBook a Demo
1.0.0
1.0.0
  • Acquire Developers Hub
  • Acquire
    • Acquire Build Requirement
      • Requirement For Acquire
      • Acquire Speedtest
  • JS API
    • JS Live Chat API
      • Description
      • Installation
      • Visitor
      • Thread
      • Conversation
      • User Verification
    • Quick Link Support
      • One Click Button
      • Social Media Share
    • Backend JS SDK
      • Setup Backend JS SDK
      • Demo Backend SDK
    • Advanced
      • Widget UI
      • Reference
  • Co Browse APIs
    • Acquire Co Browse
      • Co Browse API
  • Acquire API Events
    • WebRTC Related Events
  • iOS
    • SDK Setup Guide
      • Getting Started
      • Integration Guide (Core)
      • Integration Guide (Lite)
      • Manual Setup iOS
      • Acquire Account ID
    • SDK Configuration Example
    • iOS Cobrowse
    • Theme Setting
    • iOS Push Notifications
    • Verify your users
  • Android
    • Getting Started
      • Integration Guide (Core)
      • Integration Guide (Lite)
      • Start using Acquire
    • Acquire APIs
    • Acquire Delegates
    • Custom UI/widget
    • Cross Platform Integrations
  • Webhook API
    • Webhooks Basic
      • Introduction
      • Webhook Integrate Steps
      • Webhook Format
    • Webhook Events
      • On Chat Start
      • On Chat Accept
      • On Chat Message
      • On Chat Close
  • REST APIs
    • OAuth
      • Authorization
      • Tracklog
    • Profiles API
      • Profile List
      • Thread
      • Feedback
      • Profile Details
      • Message
      • Tags
      • Profile Agents
      • Campaigns
      • Profile Add Update
      • Profile Delete
      • Profile Visit History
      • Sender Emails
    • Chat
      • Chat Notes
    • Analytics
      • Chat Statistics
      • Team Analytics
      • Conversion Rate
      • Chat Tag
      • Co browsing
    • Agent
      • Agents List
      • Agent add
      • Edit / Get-agent
      • Update
    • Trigger
      • Triggers List
      • Triggers Detail
    • Operating Hours
      • Save Operating Hours
      • Get Operating Hours
    • Cobrowse
  • Chatbot API
    • Chat Bot
      • Integrate Your Chatbot
      • Dialog Flow V1 Chat-Bot
      • Dialog Flow V2 Chat-Bot
      • Dialog Flow Fulfillment & Custom Response
      • IBM Watson Integration
      • Amazon Lex Bot
      • Azure's QnA Maker
      • Webhook Calling & User Verification
      • Webhook For Reset Password
  • Knowledge Base APIs
    • Help Docs Setup
      • Get FAQ Categories
      • Get Setup Details
      • Get Side List
      • Get Article
      • Get Recent Article
      • Get Categorized Articles
      • Get Suggestion
  • Errors
    • API Error Handling
      • HTTP Responses
Powered by GitBook
On this page
  • Webhook Creation:
  • Lead creation with webhook variable:
  1. Chatbot API
  2. Chat Bot

Webhook For Reset Password

PreviousWebhook Calling & User VerificationNextHelp Docs Setup

Last updated 5 years ago

Webhook Creation:

To resetting the password, first of all we create a webhook API. Whenever we call this webhook API, we will get huge data about visitor in body of that particular API. Like: hash, visitor_id, chat_id, visitor’s name, visitor’s email, lead details, browser details, custom fields value, other misc details.

So by the use of visitor’s email we can call our internal Endpoint of Resetting the password, by the use of this Webhook API.

First of all we fetch visitor’s Email from this huge data, then after we call our endpoint by the use of cURL(in PHP) and then webhook will reply based on the cURL response. Bot will use that Webhook response and replace it with webhook variable in Sales-Bot’s Lead.

In Code, We do like this:

In cURL Code, we call our endpoint, where we pass $email value on <SYSTEM_DOMAIN>/api/auth/forget-password endpoint. Then after according to response we setup our webhook. Keep this mind that, If you create webhook variable as reset_password_status then response of this webhook must be {“reset_password_status”: “<MESSSAGE HERE>”}. So Bot can easily understand it and replace it with webhook variable.

After creating this webhook API, we add this in Webhook APIs Section in Acquire (Chat Bot > Setting > Webhook APIs).

Lead creation with webhook variable:

Now we make a Lead in Sales-Bot, where we make various branches. In branches, somewhere we use that webhook variable {{reset_password_status}}. Create lead branch like:

Now, we call this Lead either from Trigger section or from Support-Bot. In Support-Bot we make a Question/Answer as “I forgot my password” then Support-Bot will redirect us to Sales-Bot. See Example: