Skip to content
askdareDocumentation

    Examples

    Each guide explains one feature. These recipes put several together for a real use case: the goal, the askdare features it combines, the code, and what to change for your own system. The code of each recipe is in site/recipes/, where the site's build typechecks it. It runs on made-up data in memory, so you can read it without a shop or an API key, and replace that data with your own. The MCP recipe is the exception: it is this site's own docs chat, on DeepWiki's public MCP server, with its code in site/deepwiki.ts.

    RecipeForCombines
    Order status for a signed-in customerShopsIdentity in a tool, an order card, reply options, handoff
    Booking a consultationServices, agenciesA slots tool with a card, the times as reply options, a form that books in onLead
    A product page assistantShops, SaaS pricing pagesPage context with the product the page shows, product cards in the React chat
    Handoff to Slack, leads to a CRMSupport and sales teamswebhookHandoff to a small route that posts to Slack, onLead to a CRM's form API
    Chat events in your analyticsMarketingChat events to GA4 or Plausible, from the script tag or React
    Answers from your code, through MCPTeams with an MCP server (a CRM, a ticket system, docs)mcpTools with one allowed tool and a pinned fingerprint, remote call limits, doctor in CI

    Coming in 0.9:

    • Travel desk (hotels, travel agencies, venues): the weather from MET Norway summarized per day, the time and the exchange rate, and a table booking with slots as reply options and a form.
    • Mission Control (anyone who wants to see tools at work): a live bot on this site with tool cards and reply options on real data from NASA, The Space Devs and wheretheiss.at. Its source is in site/examples/space/.

    Before you copy

    • The recipes are not bots this site serves. Each one defines its own bot, route and page, as your app would. The live examples on this site are the demo on the home page, Mission Control and the docs chat.
    • Every recipe needs the chat route from Getting started: bot.ts stands for your askdare.config.ts, and route.ts for app/api/chat/[...path]/route.ts.
    • Tools take who the visitor is from identity, never from the model's arguments (Tools). The recipes that look up a person's data show how.