This repository provides a Cloudflare Worker template for creating custom webhook tools that integrate with Wassist.
This Cloudflare Worker example creates an interactive guessing game with the following features:
- Museum Portrait Game: Users attempt to guess the name of a portrait displayed in a museum
- Airtable Integration: Game data is stored and managed in Airtable
- Secure Webhook Tools: Two custom tools that your AI assistant can interact with
- Uses the phone number variable from the assistant to identify players
- Calls the Airtable API to fetch a random, inactive portrait
- Returns a unique game ID and portrait information to begin the game
- Accepts the game ID and the user's guess count
- Validates the guess against the correct answer
- Returns whether the guess was correct or not
The worker includes API secret validation to ensure webhook requests are authentic and coming from authorized sources.
- Clone this template
- Configure your Airtable API credentials
- Set up your webhook security secret
- Deploy to Cloudflare Workers
- Integrate the webhook URLs with your AI assistant
Perfect for developers looking to build interactive, data-driven experiences with AI assistants using Cloudflare and Wassist.