Popup Chatbot From Button Click


OPEN CHATBOT ON BTN CLICK:

If a user wishes to set a button for a pop-up chatbox, then the user can add class=”fireup-botsify-chat” on any button from where you wish to open chatbot.

 See Example:

 

<button type=”button” class=”fireup-botsify-chat” >

Button 1

</button>

 

FOR SETTING CUSTOM USER ATTRIBUTE:

You can create attributes for the user by just only clicking a button that contain class=”fireup-botsify-chat”. For setting attributes you have to pass data attributes for the user. In the example “qualifications” and “job_location” will be set as user attributes with the given values.

See Example: 

<button type=”button” class=”fireup-botsify-chat” data-qualifications=”inter” data-job_locations=”Bahadurabad”>

      Button 1

  </button>

 

TRIGGER STORY:

If you wish to run a story by just clicking a button from your own website then you have to pass data-story attribute to a button which contains class=”fireup-botsify-chat”. In an example, data-story is passed with the payload of the story which you have to trigger.

See Example

<button type=”button” class=”fireup-botsify-chat” data-story=”STORY_ID-123” >

Button 1

</button>

 

TRIGGER STORY ONCE:

If the clients have a wish that its users may view the story every time it visits the website, then the user adds data-recurring=”true” attribute to a button, and if it wishes to run the story for once then the user adds, data-recurring=”false” attribute to a button must be run. This only works when data-story=”STORY_ID-123″ attribute is present.