DoorDash
Give the Sazabi agent the DoorDash CLI (dd-cli) in its sandbox to search stores and menus, build carts, preview pricing, and check orders on a DoorDash account.
All DoorDash integration capabilities
About
This CLI connection makes the DoorDash CLI (dd-cli) available in the Sazabi agent's sandbox. The agent can use it to search restaurants and stores, browse menus, build personal or group carts, preview pricing, and read order history, status, and receipts. The CLI is installed in the sandbox the first time the agent runs it; connecting it authenticates the CLI.
The connection acts as one person's DoorDash account. Orders use that account's saved addresses and default payment method. dd-cli order submit places a real order and charges the account, so the agent previews the order and asks for confirmation of the total, card, and tip before it submits.
DoorDash CLI is in private beta. DoorDash publishes builds for macOS (Apple Silicon) and Linux (amd64).
Prerequisites
- A Sazabi project.
- A DoorDash account approved through the DoorDash CLI waitlist.
- A DoorDash CLI token (
DD_CLI_ACCESS_TOKEN). Installdd-clifrom the DoorDash CLI releases on a machine where you can sign in, then rundd-cli export-token. It opens the DoorDash sign-in in your browser and prints the token.
The token expires after a few days. Treat it like a password.
Set up in the dashboard
Configure the sandbox in the dashboard under Settings > Sandbox CLIs.
Find DoorDash in the catalog
In Settings > Sandbox CLIs, find DoorDash under Browse sandbox CLIs and choose to connect it.
Provide credentials
Enter the required value: DD_CLI_ACCESS_TOKEN, the output of dd-cli export-token. Sazabi checks it with a read-only dd-cli address list call before saving, and injects it into the sandbox when the agent runs.
Set up with the CLI
You can also configure the DoorDash CLI connection with the Sazabi CLI (installed and authenticated; see CLI reference).
sazabi sandbox-clis connect doordash --env DD_CLI_ACCESS_TOKEN="$(dd-cli export-token)"To validate the token without saving, run the same command with test in place of connect (the test command also requires the --env flags).
Verify
Ask the agent, in a thread, to list your saved DoorDash addresses with dd-cli and confirm they match your account. If the command is not found, the CLI connection may not be enabled; if it reports an authentication error, export a new token.
Troubleshooting
Command not found: Confirm the DoorDash CLI connection is enabled for the project under Settings > Sandbox CLIs.
Failed to authenticate/authorize the user: The token expired or was revoked. Tokens last a few days. Update the connection under Settings > Sandbox CLIs with a new token from dd-cli export-token, or run sazabi sandbox-clis connect doordash --env DD_CLI_ACCESS_TOKEN="$(dd-cli export-token)".