Okay
  Public Ticket #3395258
Webhooks
Closed

Comments

  • Brian started the conversation

    Hello, 


    Is there a way to trigger a webhook ONLY when the appointment is confirmed, but not when it's deleted?

    Booking Completed means when the booking is finished, and status changed could mean that ANY status changes. I'd only like to trigger it when the booking is confirmed. Is that possible?


    best,

  •  1,339
    Marko replied

    Hello Brian,

    We have forwarded your ticket to our level 2 agents and as soon as we get some feedback from them we will contact you immediately. 

    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,339
    Marko replied

    Hello Brian,

    We just got the feedback from our colleagues and they have told us that, when you add webhooks, you choose which action a certain hook is triggered on like this

    3289185435.png

    Hope this helps. 

    If you have any more questions please open a new separate ticket for each question and we will gladly help you there.

    We wish you all the best.

    Have a nice day. 


    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Brian replied

    Marko, thank you for the reply but my question wasn't answered


    I know about the triggers, and I know how to set up, but I'm just asking if there's any trigger that will be triggered ONLY when thenbooking is confirmed


    Your answer relates to "how I set a trigger", but I'm being more specific. Can you help me.with that?


    Best

  •  1,339
    Marko replied

    Hello Brian,

    We have forwarded your ticket to our level 2 agents again and as soon as we get some feedback from them we will contact you. 

    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  •  1,339
    Marko replied


    Hello Brian,

    We just got the feedback from our colleagues and they have told us that, unfortunately, currently, this feature is not built-in in Amelia.

    Amelia currently has the following hooks:

    <script>
    window.ameliaActions = {
      ViewContent: function (success = null, error = null, data) {
        //triggered when the form loads
        console.log('ViewContent HOOK')
        console.log(data)
        console.log('------------')
      },
      SelectService: function (success = null, error = null, data) {
        //triggered when the service is selected/changed in the form
        console.log('SelectService HOOK')
        console.log(data)
        console.log('------------')
      },
      SelectEmployee: function (success = null, error = null, data) {
        //triggered when the employee is selected/changed in the form
        console.log('SelectEmployee HOOK')
        console.log(data)
        console.log('------------')
      },
      SelectLocation: function (success = null, error = null, data) {
        //triggered when the location is selected/changed in the form
        console.log('SelectLocation HOOK')
        console.log(data)
        console.log('------------')
      },
      SelectCategory: function (success = null, error = null, data) {
        //triggered when the category is selected/changed in the form
        console.log('SelectCategory HOOK')
        console.log(data)
        console.log('------------')
      },
      SelectPackage: function (success = null, error = null, data) {
        //triggered when the package is selected/changed in the form
        console.log('SelectPackage HOOK')
        console.log(data)
        console.log('------------')
      },
      InitiateCheckout: function (success = null, error = null, data) {
        //triggered once the customer lands on the "info" page where they fill in their details
        console.log('InitiateCheckout HOOK')
        console.log(data)
        console.log('------------')
      },
      Schedule: function (success = null, error = null, data) {
        //triggered once the 'on-site' booking is completed
        console.log('Schedule HOOK')
        console.log(data)
        console.log('------------')
      },
      Purchased: function (success = null, error = null, data) {
        //triggered once an online booking is completed
        console.log('Purchased HOOK')
        console.log(data)
        console.log('------------')
      },
      beforeBooking: function (success = null, error = null, data) {
        //triggered when the "Confirm" button is clicked but before the booking is completed.
        //This hook currently doesn't work for Mollie and WooCommerce payments
        console.log('Before booking is created HOOK')
        console.log(data)
        console.log('------------')
      },
    }
    </script>

    These are the same hooks used in Google Analytics and Facebook Pixel integrations, but if you need some other hooks added, please let us know which ones and explain what they would contain and when they should be triggered.

    If you have any more questions please open a new separate ticket for each question and we will gladly help you there.

    We wish you all the best.

    Have a nice day. 



    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Brian replied

    > These are the same hooks used in Google Analytics and Facebook Pixel integrations, but if you need some other hooks added, please let us know which ones and explain what they would contain and when they should be triggered.

    Essentially, whenever a meeting is booked and confirmed, it would trigger the event. I'm looking to set all my events to pending, so I can approve them manually as they come in. Therefore, the trigger wouldn't be 'booking completed', it would be 'booking corfirmed'


    Situation: Booking confirmed
    Trigger: Only triggered when a booking is confirmed. Might be redundant if you set the settings to confirm meetings by default

    Events: When an appointment is booked, it is set to pending. After the employee manually confirms the meeting, this would trigger the webhook with the booking information just like the booking completed. Again, the trigger is the confirmation by the employee, not the booking by the customer.

  •  1,339
    Marko replied

    Hello Brian,

    I will forward this to our developers so that they can take a look and see if this can be implemented sometime in the future. Of course, we can not make any promises at this time but we can forward your suggestion.

    And If you have any more questions please open a new separate ticket for each question and we will gladly help you there.

    We wish you all the best.

    Have a nice day. 


    Kind Regards, 

    Marko Davidovic
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables