Example: Automatically issue points to users when they are assigned a specific in your Discord server using Zapier and Absinthe’s API.

Setting Up Reaction Trigger

Choose the trigger that watches for the Role Assignment event on discord.

To reward users with points when they receive a specific role in your Discord server, you’ll need to set up a Zap in Zapier that listens for role assignment events and then triggers a point issuance through Absinthe’s API.

Example Integration Walkthrough

IMPORTANT: The event UUID should be used instead of the event name. Please disregard this section in the Loom.

Here is a Loom helping you walk through each step! https://www.loom.com/share/55e00d604136410c93edf32dd8f4e8fb?sid=dc64b13d-5d4e-4a6e-ba34-03f7acf00069

1

Create a New Zap in Zapier

Log in to your Zapier account and click on “Create Zap”.

2

Choose Discord as the Trigger App

Search for “Discord” in the app selection and choose it as your trigger app.

3

Select the 'Role Assigned To User' Event

From the list of Discord events, select “Role Assigned To user”.

4

Connect Your Discord Account

If you haven’t already, you’ll need to connect your Discord account to Zapier. Follow the prompts to authorize Zapier to access your Discord server.

5

Choose the Discord Server

Select the specific Discord server you want to monitor for assignments.

6

Test the Discord Trigger

Zapier will attempt to find a recent message reaction to test the trigger. If successful, proceed to the next step.

7

Add Absinthe Action

For the action step, search for and select “Absinthe”.

We will provide you an invite link for access to our Absinthe Zapier Action.

8

Enable 'Give Points' Functionality

In the setup for Absinthe, select Give Points as the Action Event.

9

Add Absinthe Account

In the setup for Absinthe select your Account. An authentication pop-up will ask you to event an API key which we will provide you, then select “Continue to Absinthe”.

10

Register Event

Go to Absinthe’s GraphQL playground at https://dka7gqe6jrgst.cloudfront.net/absinthe-gql.html and register the event name you are going to issue points for. Grab the UUID that is returned in the response to this query and pass it in to the Absinthe Integration on Zapier under “Event UUID”

Copy and paste the following query into the GraphQL playground at https://dka7gqe6jrgst.cloudfront.net/absinthe-gql.html Add your desired event name and description! Make sure to add your API key in the Authorization header in the Headers section as shown.

IMPORTANT: You must save the returned UUID from the response for that event. Insert this UUID into the “EVENT UUID” field when setting up your Zap!

11

Set Up the Action Input Data

In the Input Data field Action, you’ll select DISCORD_USERNAME for the Account Type, and the User Id from the value field dropdown as Account ID.

12

Finish

Select test in the bottom right to verify your set up, Then select publish in the top right to go live!

If you need more in-depth customization, please see our example guides for using custom Javascript!

By following this guide, you can create a seamless integration between off-chain events and your Absinthe points system, automatically rewarding users for their engagement.