Tutorials · · Kitetags team

Tutorial: build an NFC loyalty rewards program in 10 minutes with interaction templates

Run a loyalty rewards program on NFC tags with the new Kitetags interaction templates: pick the Digital punch card template, set your store code and reward, test a tap in the builder, and stamp your first card.

A customer holds a smartphone over a glowing NFC reader at a cafe counter as a barista reaches across

A paper punch card gets lost, faked, or forgotten in a coat pocket. An NFC tag on a loyalty card keeps count by itself: the customer taps it, a staff member confirms the visit, and the tenth coffee is free.

In this tutorial you’ll build that card from the Digital punch card interaction template. You don’t need to build anything from scratch. You pick the template, change a few values, test it in the builder, and stamp your first card.

You’ll need:

  • A Kitetags account (any plan)
  • A few NFC Kitetags. Stickers on loyalty cards or key fobs work well.
  • A phone with NFC (any recent iPhone or Android)

A cafe owner working on a laptop in an empty coffee shop before opening

In the Kitetags dashboard, go to Interactions → Create Interaction. A window titled What is this tag for? opens. This is the template gallery.

The rail on the left groups templates by purpose: Share with someone, Count visits, Track things and work, and Check a product. If you’d rather build by hand, Start from scratch is pinned at the bottom.

Step 2: Pick “Digital punch card”

A cafe owner choosing a colourful card on a tablet at the counter

Click Count visits, then Use template on the Digital punch card card.

While the card says Setting up…, Kitetags does two things:

  1. Creates the data structure. It’s called Punch Card and holds what each tag remembers: UID, Callsign, Stamps, Rewards Earned, and Last Stamp. If you already have a Punch Card structure with those fields, it’s reused instead.
  2. Opens the builder with the flow filled in, as a draft called Punch Card Tap.

The builder saves the draft as you work, but nothing goes live until you publish it and attach it to a group of tags.

Step 3: Read the flow

A cafe owner studying a list of steps on two wide monitors and taking notes

The step list on the left shows the whole card’s logic:

Step Type What it does
Add a stamp Form Input Asks staff for the store code
Check the code Logic + Data If the code is right, continue. Otherwise, jump to Ask staff
Stamp Logic + Data Adds 1 to Stamps and records the time. At 10 stamps, jumps to Redeem
Stamp added Message “3 of 10 stamps. Your 10th coffee is on us.”
Redeem Logic + Data Resets Stamps to 0 and adds 1 to Rewards Earned
Free coffee! Message The reward screen, shown at the counter
Ask staff Message Shown when the code is wrong. Nothing is added.

Two details are worth knowing. First, each branch ends on its own message with no button, so a tap never runs into the next branch. Second, the step names in the table are ours. Your builder lists them by number and type: Step 1 Form, Step 2 Logic+Data, and so on.

Step 4: Make it yours

A cafe owner entering a code on a counter terminal with a stylus

The template uses example values. Change these three before you go live:

The store code. Open the Check the code step (Step 2 Logic+Data). The decision list reads If storeCode is 2468. Replace 2468 in the value box with your own code. Tell your staff the code, and keep it off the counter.

How many stamps earn a reward. Open the Stamp step (Step 3 Logic+Data). The calculations read as sentences: Add 1 to Stamps, then Copy Timestamp into Last Stamp. Below them, the condition says If stamps is at least 10. Change 10 to your number.

The wording. Open the Stamp added and Free coffee! messages and edit the text. Keep {{stamps}} and {{rewardsEarned}} where you want the live counts. If you changed the reward threshold, change the “of 10” here too.

Use the Design tab to add your logo and colours. The preview on the right updates as you type.

About the store code: the code is part of the step’s settings, so someone who inspects the tap page closely could find it. That’s fine for a free coffee, but don’t use this pattern for anything valuable.

Step 5: Try a tap before you tap

A cafe owner holding a loyalty card with a green checkmark beside a laptop showing a list of results

Open the Stamp step and find the Try a tap panel. It runs the same logic as a real tap, using sample values you type in.

  1. Set Stamps to 9. The result shows Stamps → 10, would be saved on the tag, then The first condition matched and Goes to: 5. Logic+Data, which is the Redeem step. So the tenth stamp unlocks the reward.
  2. Set Stamps to 2. Now it says No condition matched and Goes to: Continue to the next step, which is the Stamp added message.
  3. Open Check the code, enter 1111 as the store code, and confirm the tap goes to Ask staff.

Nothing is saved while you try it, so you can test as many cases as you like.

Step 6: Save and put it on your cards

Hands peeling a small NFC tag sticker onto a stack of loyalty cards, a phone nearby

Click Publish to save the interaction. Then connect it to your tags:

  1. Go to Groups → Create Group and name it something like Loyalty Cards.
  2. Choose Punch Card as the data structure and Punch Card Tap as the interaction, then save.
  3. Claim your tags into the group by tapping each one with your phone. Tags you’ve already claimed can be moved into it instead. See the Kitetag Groups guide.

Each tag counts its own stamps, so give every customer a separate card.

Step 7: Stamp the first card

A smiling barista holds out a small tag reader as a customer taps it with a phone

Hand a card to a customer and have them tap it with their phone. The Add a stamp screen opens. A staff member enters the store code and taps Stamp, and the customer sees Stamp added: 1 of 10 stamps.

On the tenth visit the customer sees Free coffee!, and the card starts again from zero.

Step 8: Watch the cards fill up

A cafe after dark with a dashboard of rows on a monitor and a tablet at the counter

Open the Loyalty Cards group to see each card’s Stamps, Rewards Earned, and Last Stamp time. To look at all your regulars at once, export the group as CSV.

Where to next

The same gallery has eleven more templates, and they all work the way this one does:

  • Attendance tracker counts one visit per member per day and celebrates milestones at 10, 25, and 50 visits.
  • Event check-in with capacity shows “Event full” once the room is full.
  • Equipment checkout records who has an item. Tap again to return it.
  • Room cleaning check-in flags a room as overdue after 4 hours.

Every template opens as a draft you can change, and Try a tap lets you check your changes before any customer sees them. For more about each step type, read the Interaction Builder guide.

NFC · Tutorial · Templates · Logic + Data · Loyalty