add-wizard-step

Implement multi-step wizard flows in Telegram bots with state management.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation of multi-step conversational flows (wizards) within a Telegram bot, enabling guided user interactions for complex tasks.

Core Features & Use Cases

  • Step-by-Step Guidance: Define individual steps for a wizard, each with specific logic for entry, validation, and data storage.
  • State Management: Easily manage user state across different steps of the wizard.
  • Transitions: Control the flow between steps, including moving to the next step, retrying the current step, or finishing the wizard.
  • Use Case: Create a user onboarding wizard that collects a username, email, and preferences sequentially, validating each input before proceeding.

Quick Start

Extend the WizardStep class to define your wizard's behavior.

Frequently Asked Questions about add-wizard-step

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

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

Build multi-step wizard flows in a Telegram bot by extending the WizardStep class to define individual steps. Each step manages its own entry, validation, storage, and retry logic, enabling guided conversational interactions.

How does state management work for conversational AI user flows in Kotlin?

State management for conversational AI user flows in Kotlin is handled by retaining user state across wizard steps. This structured approach supports flexible transitions between steps, allowing you to move forward, retry, or finish complex tasks.

Can I validate user input sequentially during a Telegram bot onboarding wizard?

Yes, you can validate user input sequentially during a Telegram bot onboarding wizard. You define specific validation logic for each individual step, ensuring data like usernames or emails is checked before proceeding to the next step.

What is the best way to handle step transitions in a Kotlin Telegram bot wizard?

The best way to handle step transitions in a Kotlin Telegram bot wizard is using the structured WizardStep approach. It facilitates flexible transitions between steps, allowing you to control moving to the next step, retrying, or finishing.

Do I need external state management dependencies to create guided interactions in a Telegram bot?

No external state management dependencies are required to create guided interactions in a Telegram bot. The Skill operates without dependencies, using internal state management to handle user data across different wizard steps.

How do I define retry logic for failed validation in a conversational wizard step?

Define retry logic for failed validation in a conversational wizard step by implementing the retry mechanism within your WizardStep extension. This allows the bot to prompt the user again if input validation fails before proceeding.