AI-Powered Tour Guide for Financial Platform Navigation

ramp · Finance · 2024 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Financial platform navigation

Ramp needed to help users navigate a complex financial operations product without forcing them into risky full automation or making support teams answer routine navigation questions.

Constraints:

Architecture

Ramp built Tour Guide as a UI-navigation agent that turns the current web session into one constrained next action at a time. The system annotates interactive HTML elements, incorporates accessibility descriptions, simplifies the DOM, labels a fixed option set, and prompts the model to choose the next scroll, click, or text-fill action. A routing layer decides when Tour Guide should be invoked, while guardrails restrict operation on high-risk pages and leave users in a visible, interruptible loop.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  tour-guide-router["tour-guide-router"] --> prompt-builder["prompt-builder"]
  dom-annotation-script["dom-annotation-script"] --> prompt-builder["prompt-builder"]
  prompt-builder["prompt-builder"] --> single-call-action-agent["single-call-action-agent"]
  single-call-action-agent["single-call-action-agent"] --> ui-action-executor["ui-action-executor"]
  single-call-action-agent["single-call-action-agent"] --> guardrail-layer["guardrail-layer"]
  ui-action-executor["ui-action-executor"] --> prompt-builder["prompt-builder"]
  ui-action-executor["ui-action-executor"] --> human-user["human-user"]
  guardrail-layer["guardrail-layer"] --> human-user["human-user"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
tour-guide-router Classifies user requests and routes relevant navigation questions into the Tour Guide experience. prompt-builder
dom-annotation-script Tags interactive HTML elements with visible labels and accessibility descriptions. prompt-builder
prompt-builder Combines screenshot/UI context, simplified DOM objects, and fixed letter-labeled choices for the model. single-call-action-agent
single-call-action-agent Generates the next scroll, click, or text-fill action from the constrained prompt. ui-action-executor, guardrail-layer
ui-action-executor Applies the selected action to the visible Ramp session and feeds the changed state back into the next iteration. prompt-builder, human-user
guardrail-layer Prevents the agent from operating on high-risk or unreliable pages. single-call-action-agent, human-user
human-user Observes, pauses, overrides, or follows the guided actions in the financial product. ui-action-executor, guardrail-layer

Data flow

A user asks for help in the Ramp product. A classifier routes relevant requests to Tour Guide. The current screen, annotated DOM, accessibility tags, and fixed letter-labeled interactable choices are packaged into the prompt. The model chooses one next action, the UI executes it, and the changed session state becomes the input for the next step until the user stops or the task is complete.

3 supporting quotes
“The iterative action-taking approach works by taking the current state of the web application session as input and generating the next best action.”summary, stated
“Once the action is executed, the resulting altered session state is fed back to generate the subsequent action.”summary, stated
“Rather than requiring users to manually activate the feature, the team developed a classifier that identifies relevant queries and automatically routes them to Tour Guide when appropriate.”summary, stated

Why this architecture

Ramp favored an iterative, constrained action loop because it made UI automation safer and more predictable than full-plan generation. The team collapsed an earlier two-call plan-and-ground design into a single call to reduce latency, then compensated by simplifying the DOM and forcing the model to choose from explicit options. Guardrails and visible user control were especially important because the product handles finance operations.

3 supporting quotes
“This constraint allowed them to design the Tour Guide agent to generate exactly one action at a time rather than attempting to plan entire multi-step workflows upfront.”summary, stated
“While this separation improved accuracy, it introduced unacceptable latency for the user experience.”summary, stated
“The most effective way to improve an agent’s accuracy is by constraining the decision space. LLMs still struggle to pick the best option among many similar ones.”article, stated

Models used: LLM · Vimium-style element labeling · DOM accessibility tags

Scale

Alternatives considered (roads not taken)

Full workflow planning up front

Rejected because: Planning entire tours would require many sequential actions and create more error propagation than generating one verifiable next action at a time.

“this approach proved more effective than designing entire tours from start to finish, which would require many sequential actions to fulfill a user request.”summary, stated

Separate planning and grounding LLM calls

Rejected because: The two-call design improved accuracy but made the interactive experience too slow.

“Initially, the team built a two-step agent architecture with separate LLM calls for planning (determining which objects to interact with) and grounding (executing the interaction).”summary, stated
“They consolidated the architecture into a single LLM call that combined planning and action generation.”summary, stated

Context stuffing

Rejected because: Extra context increased prompt length and latency; enriched but concise interactions worked better.

“While they tried context stuffing to piece together extra context with the user screenshot, they found it was more effective to focus on well-enriched interactions without overloading the prompt.”article, stated

Patterns

tool-use-orchestration (agent architecture)

The agent reduces browser navigation to a constrained tool-like action space of scrolling, clicking, and filling text.

“every user interaction with their web application could be categorized into three atomic operations—scrolling, clicking a button, or filling in text.”summary, stated

latency-optimization (production)

Ramp collapsed separate planning and grounding calls into one LLM call because user-facing navigation could not tolerate the extra latency.

“longer prompts resulted in increased latency.”article, stated
“They consolidated the architecture into a single LLM call that combined planning and action generation.”summary, stated

guardrails-io-filtering (safety)

The system limits where the agent can act, avoiding high-risk pages and UI states likely to fail.

“implemented guardrails to prevent the agent from operating on high-risk pages.”summary, stated

human-in-the-loop-gate (safety)

Tour Guide is designed as visible assistance where users can watch, pause, or override the agent rather than surrendering full control.

“users maintain the ability to intervene.”summary, stated
“The result is a human-agent collaborative experience where users can observe, pause, and override the AI's actions”summary, stated

Tradeoffs

Use a single action-generation call.

Chose One LLM call for planning plus action generation over Separate planning and grounding calls.

Rationale: Latency mattered more for a guided UI experience than the extra accuracy from splitting the steps.

“This trade-off between accuracy and latency is a recurring theme in production LLM deployments”summary, stated

Constrain the visible action space.

Chose Simplified DOM plus fixed labeled options over Letting the model choose from a long list of interactable elements.

Rationale: A smaller, explicit action space improved accuracy and made the model's decision more controllable.

“Instead of letting the model pick from a lengthy list of interactable elements, they found that labeling a fixed set in the prompt with letters (A to Z) made it clear”article, stated

Keep the user in control instead of pursuing full automation.

Chose Visible guided assistance over Full automation of financial product workflows.

Rationale: Finance users need trust and the ability to intervene when an agent is manipulating product state.

“Rather than pursuing full automation—which they considered higher risk and potentially uncomfortable for users dealing with financial operations”summary, stated

Gotchas (what bit them)

Large DOMs and many similar interactable elements degrade model choices.

Root cause: LLMs struggle to choose the best option among many similar UI elements.

Resolution: Prune irrelevant DOM objects and label a fixed set of interactable choices with letters.

“LLMs still struggle to pick the best option among many similar ones.”article, stated
“They simplified the DOM to prune out irrelevant objects, which created cleaner, more efficient inputs”article, stated

Better separated reasoning can be too slow for interactive UI help.

Root cause: The initial two-step planning/grounding design added latency even though it improved accuracy.

Resolution: Use one prompt that combines planning and action generation, then constrain the input space more aggressively.

“While this separation improved accuracy, it introduced unacceptable latency for the user experience.”summary, stated

The case lacks disclosed automated evaluation and quantitative outcome metrics.

Root cause: The public writeup emphasizes qualitative iteration, prompt optimization, and UX design rather than benchmark numbers.

Resolution: Treat the implementation as a useful architecture pattern but discount claims about impact until adoption or accuracy data is available.

“The case study does not mention automated evaluation pipelines, test datasets, or quantitative metrics”summary, stated

Evaluation

The public case describes iterative prompt, DOM, and UX refinement rather than a disclosed benchmark pipeline. Evaluation appears to rely on whether the constrained inputs improve action accuracy and whether the system stays responsive enough for interactive use.

Metrics: output accuracy · latency · prompt length · support-call reduction not quantified

3 supporting quotes
“This led to a significant improvement in output accuracy.”article, stated
“Ramp’s biggest hurdle was keeping the prompt as concise as possible, since longer prompts resulted in increased latency.”article, stated
“The case study does not mention automated evaluation pipelines, test datasets, or quantitative metrics”summary, stated

Outcomes

The only concrete scale detail in the fetched source is the fixed A-to-Z option labeling; product-wide adoption and traffic are not disclosed.

3 supporting quotes
“Ramp developed an AI-powered "Tour Guide" agent to help users navigate their financial operations platform”summary, stated
“This led to a significant improvement in output accuracy.”article, stated
“the text lacks quantitative results on accuracy, user adoption, reduction in support calls, or other measurable outcomes.”summary, stated