How to serve multiple user through a single vertex ai agent app?

Imagine I have a vertex ai agent app to change user’s flight. How do I make sure the agent doesn’t change some else’s flight? I’m sure there are some obvious ways to achieve this? Here’s what I want to achieve:


NOTE: I’m using Twilio sms to talk to the agent.

- User sends a message to the agent, if the user is not a registered user, the agent lets the user know.

- If the user is registered, vertex ai pulls information about the user using a tool. Agent will only show the information for the user with the mobile number from where the message is coming from(how to achieve this without asking the user information like email or phone number. If the agent ask the user such information, user can provide someone else’s details and can mess with the agent)

- once it pulls details successfully it sends requests to the tool to make the flight change.

 

I tried passing information in the queryParams and queryInput, but didn’t help. 

Seems like there should exist an obvious solution to this that I must be overlooking.

 

5 0 65
0 REPLIES 0