Skip to content

Feature Wishlist: Integrate Deck of Cards API #526

@marouen19

Description

@marouen19

Summary
Propose adding support for the Deck of Cards API as a fun and educational module in IntentKit. This integration would allow agents to shuffle, draw, and manipulate card decks — useful for games, simulations, or creative storytelling agents.

✨ Why This Matters
Adds a lightweight and playful API integration that can be used for building card games or randomness mechanics.

Great for demo agents, learning projects, or building interactive skill chains.

Could open the door for more agent-based game logic examples or social engagement bots.

🔧 Suggested Features
shuffle_deck() — Initialize and shuffle a full deck.

draw_cards(deck_id, count) — Draw X number of cards.

add_to_pile(deck_id, pile_name, cards) — Add cards to a named pile.

draw_from_pile(deck_id, pile_name) — Draw cards from a named pile.

list_piles(deck_id) — View existing piles and contents.

📦 Implementation Notes
Use the public endpoint: https://deckofcardsapi.com/api/deck/

Responses are JSON, very lightweight.

Stateless and free to use — no auth required.

Great candidate for a low-code agent skill.

🧠 Use Cases
“Blackjack Bot” demo agent

Memory games or card-based quizzes

Randomization tools (draw a card, decide an action)

Tarot-reading themed roleplay bots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions