ui-calling

Recipes

Each recipe starts from a task and gives the whole answer: the contract, the server, the screen, what went wrong when we built it, and the demo code that does it in full. The rules and the API reference stay in the guide (npx ui-calling guide).

Print one with npx ui-calling guide <recipe>. They build on:

RecipeUse it when
show-and-actSeeing beats reading (an order, a booking), and the user may change something from there
pick-from-optionsThe user picks one of a few things that can run out: shifts, slots, seats
multistep-formThe user gives several answers in order and may stop and come back
file-uploadThe user has to send a photo or a document
prefillThe user already said in the chat what the screen asks for
link-accountYou must know which customer this WhatsApp user is before showing anything personal
verify-before-showingThe screen shows what only that person should see (a payslip, a contract), and phones get shared
third-party-failuresA system behind the screen can fail, and both the user and the agent should know
trace-an-interactionYou need to follow one user's taps to what the agent read, or find where a screen fails
follow-up-abandonedIt matters that the user finishes, and the agent should nudge once if they stop

Each recipe's code is complete enough to follow on its own. The "In the ui-calling repo" links at the end point to the demo, where each one runs and is tested; they're not in the package.

Source: packages/cli/recipes/README.md