Platform | Plan |
Shopify | Guru |
Self Serve | All |
In this article, we will explore the exciting new capabilities of using webhooks as triggers or actions within Gameball's custom automation feature. Now, you can seamlessly send and receive player information or actions to and from external applications, all while effortlessly setting up your automation flows. Learn more about Automated Workflows.
Using Webhooks as a Trigger:
You can now create a new automation triggered by an action that the player initiates on an external app. Let’s take this scenario as an example: you want to reward your customers with 100 points for each review they leave on your review app.
Here's how you can do that:
From Triggers, drag 'Webhook Trigger' and drop it into the canvas.
Set up the webhook’s configuration:
Copy the Webhook URL that we provide and paste it into the integration section of your external app, along with your API Key for authentication. Here is how you get your API Key.
Select how you want to identify your players (Email, External PlayerID, or Mobile Number)
Fill the payload based on the selected identifier to confirm the format (e.g.:
{payload.data.email}
).Press Save
Set Up your action to Add 100 Points
Connect your trigger with the Add Points action
Click on Add points
Fill in the reward information
Press Save
Press Save
Using Webhooks as an Action:
You can now also use the webhooks as an action within your custom Automation to send out players' information to your external app. For example, you want to send a welcome email using your external mailing app to a new customer who just created an account.
Here's how you can do that:
Drag the Account Created trigger to the canvas
Connect it to the Send Webhook action
Set up the webhook configuration:
Paste your external app’s webhook URL in the Webhook URL field
Choose your HTTP method(Post, Get, or Put)
Add the players’ information that you want to send out to the app in the Webhook body. You can add the payload in JSON format, use our builder, or choose from the Player Variables.
Add the Headers
Press Save
Press Save
Note:
In Payload Configuration:
If the action is to send an email within Gameball, a new configuration field should be added to specify the payload part for the player's email (
{payload.data.email}
).If the action is external, users should be able to add all required details for the webhook link and payload in JSON format.
{
"email": "email",
}