{"id":111998,"plugin_id":"plugin_asdk_app_69250fb6281c819195b52a1556b0060c","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-24T00:11:13.339Z","digest":"a96a2880d6d1e7df2db5e129c67d3c4153ec262a05ddaf13da5d083f027170e9","against":null,"payload":{"description":"Review and approve pending transactions, bills, reimbursements, and requests.\nUse when: 'approve', 'pending approvals', 'what needs my approval',\n'review transactions', 'approve bills', 'reject', 'approval queue',\n'clear my approvals'. Do NOT use for: transaction analysis, receipt uploads,\nor spend tracking.","included_files":[],"name":"ramp-approval-dashboard","skill_md_contents":"---\nname: ramp-approval-dashboard\narea: Approvals\nsupported_surfaces: [cli, mcp]\ndescription: |-\n  Review and approve pending transactions, bills, reimbursements, and requests.\n  Use when: 'approve', 'pending approvals', 'what needs my approval',\n  'review transactions', 'approve bills', 'reject', 'approval queue',\n  'clear my approvals'. Do NOT use for: transaction analysis, receipt uploads,\n  or spend tracking.\n---\n\n## Non-Negotiables\n\n- **Pass `--rationale` on every command** — it is a required field on these agent-tools (a non-empty string, max 1024 chars). With `--json`, supply it as a `\"rationale\"` key in the body. Omitting it returns `HTTP 422 (DEVELOPER_INVALID_SCHEMA)`, in both agent and human modes.\n- Always show the item details before approving or rejecting. Never blind-approve.\n- Rejections require a reason. Approvals do not, but a note is helpful.\n- Confirm with the user before executing approvals — especially bulk operations.\n- Present items sorted by priority: highest dollar amount first.\n- Amounts vary by endpoint: bill `amount` values are numeric **major currency units**; display them directly with the accompanying `currency` and never divide by 100. When totaling bills, group subtotals by `currency`; never combine different currencies or include them in a cross-queue aggregate. Reimbursements are in **dollars**, and transactions are formatted strings (\"$135.40\").\n- **Deep links**: If the response contains a `bill_url` (bills) or `reimbursement_link` (reimbursements) field, include it when presenting entity details so the user can click through to the Ramp web app. If these fields are absent, direct the user to the relevant Ramp page (e.g., `https://app.ramp.com/bills`) instead. Never fabricate deep link URLs.\n\n## Workflow\n\n### Step 1: Fetch all pending items\n\nRun these in parallel to build the full approval queue. **Paginate each endpoint until there are no more results** — a single page may not return everything.\n\n```bash\n# Pending transactions (paginate with --next_page_cursor)\nramp transactions list --transactions_to_retrieve transactions_awaiting_my_approval \\\n  --agent --page_size 50 --rationale \"List the user's transactions\"\n\n# Pending bills (paginate with --page_cursor)\nramp bills pending --agent --limit 50 --rationale \"Review bills pending approval\"\n\n# Pending reimbursements (no cursor pagination — use --limit)\nramp reimbursements pending --agent --limit 50 --rationale \"Review reimbursements pending approval\"\n\n# Pending requests (paginate with --start; --thoughts is required)\nramp requests pending --thoughts \"Reviewing all pending requests\" --page_size 50 --agent --rationale \"Review pending requests\"\n```\n\nFor each endpoint, check `pagination.next_cursor` in the JSON envelope. If it is not null, re-run the command with that cursor value (via `--next_page_cursor` for transactions, `--page_cursor` for bills, `--start` for requests) until all pages are fetched. Note: `reimbursements pending` does not support cursor-based pagination — it only has `--limit`, so increase the limit if you need more results. Aggregate results before presenting.\n\n### Step 2: Present the queue\n\nSummarize what's pending. If the response includes `bill_url` or `reimbursement_link` fields, include them so the user can open items directly in the Ramp web app:\n\n```\nApproval queue: 14 items\n\nBills (4 items):\n  USD 3,500  HighSpot        Invoice #1234    Due 2026-03-28  → <bill_url if present>\n  USD 2,500  Cometeer        Invoice #5678    Due 2026-04-01  → <bill_url if present>\n  ...\n\nReimbursements (6 items, $2,100):\n  $  520  Michael Scott   Uber rides       Submitted 2026-03-20  → <reimbursement_link if present>\n  $  312  Oscar Martinez  Office supplies  Submitted 2026-03-22  → <reimbursement_link if present>\n  ...\n\nTransactions (3 items, $12,500):\n  $5,000  Dana Alhasawi   AWS              2026-03-15\n  ...\n\nRequests (1 item, $650):\n  ...\n```\n\nFor request rows, preserve the exact `unified_request_id` returned by\n`ramp requests pending`; use it for both detail lookup and approval.\n\n### Step 3: Review and act\n\nFor each item the user wants to act on, get details first:\n\n```bash\n# Bill details\nramp bills get {bill_id} --agent --rationale \"Review bill details\"\n\n# Transaction details\nramp transactions get {transaction_uuid} --agent --rationale \"Review transaction details\"\n\n# Transaction missing items (if relevant)\nramp transactions missing {transaction_uuid} --rationale \"Check missing items on the transaction\"\n\n# Reimbursement details (use list with specific UUID)\nramp reimbursements list --reimbursement_uuids '[\"{uuid}\"]' --include_policy_assessment --agent --rationale \"List the user's reimbursements\"\n\n# Request details\nramp requests get {unified_request_id} --agent --rationale \"Review request details\"\n```\n\n### Step 4: Execute approvals\n\n```bash\n# Approve a transaction\nramp transactions approve {transaction_uuid} --action APPROVE --thoughts \"Reviewed — within policy\" --rationale \"Act on the transaction approval\"\n\n# Reject a transaction (reason required)\nramp transactions approve {transaction_uuid} \\\n  --action REJECT_AND_REQUEST_CHANGES \\\n  --thoughts \"Missing receipt and over budget\" \\\n  --user_reason \"Please attach the receipt and update the memo\" --rationale \"Act on the transaction approval\"\n\n# Approve a bill — not yet available via CLI.\n# Use the bill_url from the response to direct the user to the Ramp app.\n\n# Approve a reimbursement\nramp reimbursements approve {reimbursement_uuid} --action approve --rationale \"Act on the reimbursement approval\"\n\n# Reject a reimbursement\nramp reimbursements approve {reimbursement_uuid} --action reject \\\n  --user_reason \"Receipt doesn't match the claimed amount\" --rationale \"Act on the reimbursement approval\"\n\n# Approve a request\nramp requests approve {unified_request_id} --action APPROVE --thoughts \"Approved — within team budget\" --rationale \"Act on the request approval\"\n```\n\n### Step 5: Add comments (optional)\n\nLeave a comment on any Ramp object for context:\n\n```bash\nramp general comment {object_uuid} \\\n  --ramp_object_type transaction \\\n  --message \"Approved — this covers the Q1 offsite catering\" --rationale \"Add a comment for the user\"\n```\n\nValid object types: `bill`, `booking_request`, `card`, `payee`, `provisional_bill`, `reimbursement`, `spend_intent`, `spend_request`, `ticket`, `transaction`, `vendor_payment`.\n\n## Bulk Approval\n\nWhen the user wants to approve multiple items at once:\n\n1. Present all items with amounts and details\n2. Ask: \"Approve all N items, or would you like to review individually?\"\n3. If bulk: confirm once, then execute sequentially\n4. Report results: \"Approved 12/14 items. 2 failed: [reasons]\"\n\n## Transaction Approval Actions\n\n| Action | When to use |\n|---|---|\n| `APPROVE` | Item is within policy, receipt/memo present |\n| `REJECT_AND_REQUEST_CHANGES` | Needs corrections — missing memo, wrong coding, etc. |\n| `REJECT_AND_REQUEST_FULL_REPAYMENT` | Personal expense or policy violation requiring repayment |\n\n## Example Session\n\n```\nUser: What needs my approval?\n\nAgent: Let me check all your pending queues.\n> ramp transactions list --transactions_to_retrieve transactions_awaiting_my_approval --agent --page_size 50 --rationale \"List the user's transactions\"\n> ramp bills pending --agent --limit 50 --rationale \"Review bills pending approval\"\n> ramp reimbursements pending --agent --limit 50 --rationale \"Review reimbursements pending approval\"\n> ramp requests pending --thoughts \"Checking approval queue\" --page_size 50 --agent --rationale \"Review pending requests\"\n\nApproval queue: 6 items\n\nBills (2 items):\n  USD 2,200  HighSpot        Invoice #4401    Due 2026-03-28\n  USD   500  Cometeer        Invoice #882     Due 2026-04-01\n\nReimbursements (3 items, $1,430):\n  $  520  Michael Scott   Uber rides       Submitted 2026-03-20\n  $  312  Oscar Martinez  Office supplies  Submitted 2026-03-22\n  $  598  Jan Levinson    Flight change    Submitted 2026-03-23\n\nTransactions (1 item, $220):\n  $  220  Dana Alhasawi   DoorDash         2026-03-15\n\nWant to review individually or approve all?\n\nUser: Approve the bills and reimbursements. Let me see the transaction first.\n\nAgent: I can approve the reimbursements now. Bills must be approved in the Ramp app.\n> ramp reimbursements approve reimb-001 --action approve --rationale \"Act on the reimbursement approval\"\n> ramp reimbursements approve reimb-002 --action approve --rationale \"Act on the reimbursement approval\"\n> ramp reimbursements approve reimb-003 --action approve --rationale \"Act on the reimbursement approval\"\n\n3 reimbursements approved. For the 2 bills, approve them in the Ramp app:\n  HighSpot Invoice #4401 → <bill_url if present, else https://app.ramp.com/bills>\n  Cometeer Invoice #882  → <bill_url if present, else https://app.ramp.com/bills>\n\nNow let me get details on that DoorDash transaction:\n> ramp transactions get txn-001 --agent --rationale \"Review transaction details\"\n> ramp transactions missing txn-001 --rationale \"Check missing items on the transaction\"\n\nDoorDash $220 — Dana Alhasawi, 2026-03-15\nMemo: \"Team lunch\"  |  Receipt: attached  |  Accounting: complete\n\nUser: Approve it\n\nAgent: > ramp transactions approve txn-001 --action APPROVE --thoughts \"Team lunch — receipt and memo present\" --rationale \"User confirmed approving the DoorDash transaction\"\nDone. Approval queue is clear.\n```\n\n## Deep Link Handoff\n\nWhen the agent hits a limitation — bill approvals aren't supported via CLI, or step-up auth is required — hand off to the user with a link to the Ramp web app:\n\n- **Bills**: If the response includes a `bill_url` field, use it — it routes to the correct bill page based on status (draft, approval, or paid). If absent, direct the user to `https://app.ramp.com/bills`.\n- **Reimbursements**: If the response includes a `reimbursement_link` field, use it. If absent, direct the user to the Ramp reimbursements page.\n\nExample handoff message (when `bill_url` is present):\n```\nI can't approve bills via the CLI. You can approve this bill directly in Ramp:\n  USD 3,500 HighSpot Invoice #1234 → <bill_url>\n```\n\nAlways prefer deep link fields from the API response when available — they account for bill status and environment. Never fabricate deep link URLs.\n\n## When NOT to Use\n\n- **Uploading receipts or editing transaction memos/categories** — use ramp-complete-expenses\n\n## Gotchas\n\n| Issue | Fix |\n|---|---|\n| Bill amounts are numeric major currency units | Display the `amount` directly with `currency`; never divide by 100. Group totals by `currency` and never sum mixed currencies |\n| Reimbursement amounts are in dollars | Display as-is |\n| Transaction amounts are formatted strings | Strip \"$\" and \",\" for sorting/totaling |\n| `requests pending` requires `--thoughts` | Always include it — describe what you're doing |\n| Bill approvals are not yet available via CLI | Send the user to the Ramp app instead: `https://app.ramp.com/bills` |\n| No undo for approvals | Confirm with user before executing. Use `-n` for dry runs on write commands. |\n| Pagination varies | Check `pagination.next_cursor` in envelope. Pass it via `--next_page_cursor` (transactions), `--page_cursor` (bills), `--start` (requests). Reimbursements: `--limit` only. |\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}