Skip to main content

Acting on Its Own

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

In this walkthrough, John asks the Wayfinder Concierge for flights from Colombo to Singapore and follows up with a request for recommendations. The Concierge answers from the booking API catalog. No popup, no extra consent: it makes the calls under its own identity, using its own agent token.

Prerequisites

Complete Set Up Sample Application before starting this walkthrough.

Background

Understand It covers the requirements story behind this use case.

Walk Through the Use Case​

  1. Sign in to Wayfinder as john.doe and open the chat widget.

  2. Send:

    What flights are there from Colombo to Singapore?

    The AI Agent recognises this as a browsing tool. It calls the search_flights MCP tool with its own agent token, and replies in the chat with the list of available flights.

  3. Send a follow-up:

    Suggest a few flight deals.

    This calls the recommend_bookings MCP tool, which requires the booking:recommend scope. The agent gets it because it requests scope=booking:recommend when fetching its agent token. The Recommender role you assigned to WAYFINDER-CONCIERGE during setup grants exactly that permission.

No consent popup appears at any point. The user never sees the agent's token, it lives entirely inside the AI Agent.

Try a Variant​

  • Tail the AI Agent logs while sending the message. You can see the client_credentials token request go out to Choreo Identity & Access Management with scope=booking:recommend, and the Authorization: Bearer … header on the MCP call.
  • Remove the Recommender role assignment from the agent in the Console. Ask for recommendations again and watch the agent surface the 403 back to you in natural language: the agent token no longer carries booking:recommend.
Concepts

Agent identity. WAYFINDER-CONCIERGE is a first-class principal in Choreo Identity & Access Management with its own credentials. Treating it as an identity, not just an API key, is what lets you grant, restrict, audit, and revoke its access independently of any user. See Create and Manage Your Agent and Run Your Agent on Its Own.

Authorization. The recommend_bookings tool is protected by booking:recommend on the wayfinder resource server. The agent's own token carries that permission because the agent holds the Recommender role, exactly the same requireScope check that gates user tokens applies to the agent's. See Authorization.

Was this page helpful?