← All issues

Enable Context-Aware API Calls by Passing Current Page URL to Apollo AI

Submitted
Posted by Dan0 votesFeature

Most of our users assume the AI assistant knows which product page they’re viewing. As a result, they frequently ask about the product details shown on-screen, but the assistant can’t provide that information unless the user manually supplies the product ID. To improve user experience, we need a way to pass the current page’s URL (or product ID) to Apollo AI so that it can automatically fetch relevant product data via our API.

---

Problem Statement

  • User Frustration
    • Users expect the AI assistant to “see” the page they’re on and answer product-specific questions without extra steps.
    • They must explicitly tell the assistant, “I’m looking at Product #12345,” before receiving a relevant response.
  • Missed Opportunity for Seamless Interaction
    • Our backend API already exposes all product metadata—name, price, stock level, images, etc.
    • Apollo currently has no mechanism to detect or retrieve the page context (e.g., the URL or product ID).
    • Without that context, every conversation about a product becomes a multi-step interaction.

---

Proposed Feature

  • Expose Page Context to Apollo
    • Allow Tawk.to’s widget or embedded script to send the current page URL (or unique product identifier) to the Apollo engine whenever a user initiates or continues a chat.
    • The assistant can then include this URL or ID when calling our product API, eliminating the need for users to remember or repeat a product ID.

---
Originally posted by @adev on community.tawk.to on 4 June 2025 · 1 vote

Comments (0)

Sign in to post a comment.

No comments yet.