Reward users with points when they register or check in to your Luma events using Zapier and the Absinthe API. This step-by-step guide will help you automate point issuance for event participants seamlessly.
Log in to your Zapier account.
Click on “Create Zap” to start a new automation workflow.
In the Zap editor, search for “Luma” as your trigger app.
Select the event type "Event Guest Updated" to monitor user registrations and check-ins.
If you haven’t already, connect your Luma account to Zapier.
Follow the prompts to authorize access.
Choose the specific Luma calendar you want to monitor for the "Event Guest Updated" activity.
Zapier will then use this calendar to track when users register or check in.
Zapier will check for a recent registration or check-in event to ensure the trigger is functioning properly.
Once the test is successful, proceed to the next step.
In your Zap, search for “Run JavaScript” as your action step.
This step will allow you to set up JavaScript code that triggers the point issuance.
In the Input Data field of the Run JavaScript action, Set up the two keys:
“checked_in” - Select the value “Checked In Date” from the value field dropdown.
“user_id” - Select the value “Email” from the dropdown.
In the Code field, paste and modify the JavaScript code to issue points through Absinthe’s API.
Insert the provided API Key in place of "your_api_token_here"
within the bearerToken
variable.
Customize the points amount and the event name in the code according to your needs. The code should reflect the number of points issued for both registration and check-in.
For "JS CODE" click here
Register the event name that you want to issue points for so as to make it recognizable by the Absinthe system.
Go to the GraphQL Playground and paste the provided query.
Register Event Query
mutation RegisterOffChainEvent {
insert_points_config_registered_off_chain_events_one(object: {
event_name: "<your_event_name_to_register>",
description: "<your event description>"
})
{
id
created_at
}
}
Register Event Authorisation
{
"Authorization": "Bearer <YOUR_API_KEY_HERE>"
}
Enter your API Key in the Authorization header and add the event name and description.
By following these steps, you can efficiently set up an automated point issuance process using the Absinthe API and Zapier. This integration ensures users are rewarded for participating in your events with no additional effort required.
Watch the Loom Tutorial to see the entire setup process. Happy integrating.
Absinthe Network