Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to call the vertex Agent Engine API URL?

I have deployed an Agent Engine to Vetex AI. I have the Stream Query URL. I want to call it, and integrate it to a Slack channel. Can anybody know how should I do it? Thanks!

 

 

0 2 35
2 REPLIES 2

Hi EricLi,

Welcome to Google Cloud Community!

To integrate your Vertex AI Agent Engine with Slack using a Stream Query URL, you can create a Slack app that listens for events and forwards them to your Agent Engine.

You may follow these steps:

  • Create a Slack App: Go to Slack API and create a new app.
  • Enable Event Subscriptions: Add your Stream Query URL as the Request URL.
  • Subscribe to Events: Choose events like message.channels or app_mention to trigger your agent.
  • Add Bot Token Scopes: Include scopes like chat:write, channels:history, etc.
  • Install the App: Add it to your workspace and select the channel.

This setup lets Slack send events to your Agent Engine, which can then respond back to the channel.

For tokens and security make sure you:

  • Use your Slack Bot Token for authentication.
  • Secure your Stream Query URL with proper headers or tokens.
  • Validate Slack’s signing secret to verify incoming requests.

If you want a visual walkthrough, this tutorial on integrating Vertex AI Agent Builder with Slack breaks it down step-by-step.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

Hi ruthseki,

Thank you so much for your reply. Unfortunately, that integration is not what I request. That one is old version, and it does not work for Vertex AI Agent Engine API as Agent Engine API is pretty new. 

Good news is that I have found the soluntion from Slack docs. Developing AI Apps in API documentation here: https://api.slack.com/docs/apps/ai.  Please check this link.