add-wizard-handler

Configure @WizardHandler annotations for Telegram bot wizard flows with KSP code generation.

247|18|Updated May 26, 2022
One-click install
npx skills add https://github.com/vendelieu/telegram-bot --skill add-wizard-handler
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: add-wizard-handler
Source: https://github.com/vendelieu/telegram-bot/tree/main/.cursor/skills/bot-user/add-wizard-handler
Command: npx skills add https://github.com/vendelieu/telegram-bot --skill add-wizard-handler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of interactive, multi-step conversational flows (wizards) within Telegram bots by automating the setup of the @WizardHandler annotation.

Core Features & Use Cases

  • Declarative Wizard Definition: Define wizard triggers, scope, and state managers using annotations.
  • Automatic Activity Generation: KSP generates the necessary WizardActivity code, eliminating manual boilerplate.
  • Use Case: You are building a bot to onboard new users. You can use this Skill to define a /register command that initiates a series of questions to collect user information step-by-step.

Quick Start

Annotate your wizard object with @WizardHandler specifying the trigger commands and any custom state managers.

Frequently Asked Questions about add-wizard-handler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create multi-step wizard flows in a Telegram bot?▼

You can create multi-step wizard flows by annotating your wizard object with @WizardHandler, specifying trigger commands and custom state managers to handle step-by-step user interactions.

How does KSP code generation work for Telegram bot state management?▼

KSP automatically generates the necessary WizardActivity code from your @WizardHandler annotations, eliminating manual boilerplate for managing conversational state in Telegram bots.

What state types are supported for bot wizard step storage?▼

Wizard step storage supports String, Int, and Long state types, allowing you to choose the appropriate data format for managing your Telegram bot's conversational state.

Do I need to manually configure state managers for Telegram bot wizards?▼

No, manual configuration is not required, but the @WizardHandler annotation fully supports customizable state managers if your wizard requires specific step storage logic.

Can I define a specific command trigger for a conversational onboarding wizard?▼

Yes, you can define specific command triggers for a conversational onboarding wizard by specifying the trigger commands within the @WizardHandler annotation to initiate the multi-step flow.