Look at this sample PHP application , specifically a parseListener.phpscript. He scans the text of the letter, throws an arbitrary number of cubes based on this text, and then answers the interrogator with this large number of rolls of bone.
To do something like this, you will need to deploy the script somewhere accessible on the Internet (a hosting company that supports PHP, for example), update the code to use the SendGrid username and password, and then configure SendGrid Parse Webhook to specify on a script for examplehttp://example.com/webhooks/parseListener.php
bwest source
share