add_doubledash_item
Add one selected menu item from an offered store to an existing delivery cart or placed order, returning a cart_id for preview and user-approved submission.
Instructions
Add ONE item from an offered store to an existing delivery. Returns a cart_id — then preview_order it as cart_uuid, show the user the summary, and submit only on their go-ahead. If the response has link_confirmed false the item did NOT attach: do not preview, do not submit, and do not add it again — tell the user. Needs dd-cli >= 0.2.6.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | The query passed to search_doubledash, when the item came from that search. Placed orders only — not allowed with cart_uuid | |
| intent | Yes | One short line stating who this is for and the goal, e.g. 'Help the user order dinner'. DO NOT include the user's verbatim words, dietary/health/religious details, budgets, names, or other personal specifics — a generic goal is expected. | |
| item_id | Yes | items[].item_id from that store | |
| menu_id | No | items[].menu_id from the same item; omit only when it had none | |
| quantity | No | How many, 1-20 (default 1) | |
| store_id | Yes | stores[].store_id from list_doubledash_options or search_doubledash | |
| cart_uuid | No | An unsubmitted delivery cart — this or order_uuid | |
| order_uuid | No | A placed order's UUID — this or cart_uuid | |
| nested_options | No | JSON array of chosen options when the item has requires_options true, e.g. '[{"id":"<group_id>","options":[{"id":"<option_id>","quantity":1}]}]' |