Title: API documentation?
Last modified: December 11, 2020

---

# API documentation?

 *  Resolved [Loosie94](https://wordpress.org/support/users/loosie94/)
 * (@loosie94)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/api-documentation-12/)
 * Hi,
 * We are using this plugin on a site where we also want to trigger it with some
   other buttons when a user clicks on it. I can’t really find how to do this?
    
   Hope you guys can help me out. Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [Loosie94](https://wordpress.org/support/users/loosie94/)
 * (@loosie94)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/api-documentation-12/#post-13796090)
 * Fixed this myself, for those who interested, this worked:
 *     ```
           jQuery(document).on('click', '.trigger-start-chat', function (e) {
               e.preventDefault();
               if (jQuery('iframe#LeadboosterContainer').length) {
                   jQuery('iframe#LeadboosterContainer').contents().find("button").trigger('click');
               } else {
                   alert('LeadboosterContainer not found');
               }
           });
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘API documentation?’ is closed to new replies.

 * ![](https://ps.w.org/leadbooster-by-pipedrive/assets/icon.svg?rev=2103275)
 * [LeadBooster Chatbot by Pipedrive](https://wordpress.org/plugins/leadbooster-by-pipedrive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leadbooster-by-pipedrive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leadbooster-by-pipedrive/)
 * [Active Topics](https://wordpress.org/support/plugin/leadbooster-by-pipedrive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leadbooster-by-pipedrive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leadbooster-by-pipedrive/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [trigger](https://wordpress.org/support/topic-tag/trigger/)

 * 1 reply
 * 1 participant
 * Last reply from: [Loosie94](https://wordpress.org/support/users/loosie94/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/api-documentation-12/#post-13796090)
 * Status: resolved