[ Bitrix24 CRM for automation of Business Processes ] integration with your logic with PHP
Now we will create an event handler in our Bitrix24, when adding a new lead,
so that the lead data after its addition is immediately sent to our server for further processing.
First, you need to go to the CRM settings and click on the [Robots and Business Processes] tab.
and then a form will appear with all the current triggers and robots
[Customize robots]
and then create a robot with a type webhook.
Set a condition [status = not processed] and [execute immediately],
so that all new leads are immediately sent to our server for further processing.
Then compile the URL with a request to our script to transfer the request to the script on our server,
with the necessary data
you can see a demo URL below:
https: // your_site / script_for_reception_data_is_webhook? lead_name = {{Name of the lead}} & lead_phone = {{Phone (text)}}
Everything is ready, now the new lead will be transferred with all the necessary fields for further processing.
As you can see, you can add any of your parameters to your request, for example, I added a parameter
[& code = your_own _code_verify_request]