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

Agent Builder Creation via API

I'm looking to build out many custom AI agents using the Vertex AI Agent Builder and Python, but I'm running into some technical roadblocks. I'm not super experienced with the technology, and I could use some guidance from folks who have been around the block a few times. I was able to build out my first agent in the UI this weekend, but know that it would be easier to do many at once via Python.
 
Specifically, I'm trying to:
  • Figure out how to use the Agent Builder API with Python
  • Customize each AI agent's goals and instructions using Python
  • Pass data programmatically from an outside source to create multiple agents
If anyone has experience with these topics, I'd really appreciate your help. I'm eager to learn and build something useful, but I need a little push in the right direction.
5 REPLIES 5

Hello @maczen20 ,

You can check this documentation on how you can start with Gen AI App Builder. Let me also share with you these Gen AI App Builder code samples to help you start creating your own.

I hope this helps.

I suggest building agents with Langchain as it will be easier. Look at this post: https://www.googlecloudcommunity.com/gc/Community-Blogs/Building-and-Deploying-AI-Agents-with-LangCh.... Hope this helps. 

Hello @maczen20 

I have the same question, and the only relevant doc I found is this one : https://cloud.google.com/generative-ai-app-builder/docs/libraries#client-libraries-usage-python 

Did you find a way to request an agent through the API ?

Thanks

I might have found something that could help. As you know, at Google, they love to change the name of products.

So before "Agent Builder", we had "Vertex Search & Conversation" and then, they briefly rename it to "Playbook". For an unknown reason, it seems to be linked to Dialogflow, so while I was looking at the Dialogflow CX API, I finally found what I was looking for : https://cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3beta...

I have not tested it yet, but it seems that is how you could create an Agent programmatically.

Hey! I don't know if you are still searching for a solution to programatic agent building in Vertex AI, but I think I have found the documentation about that under Dialogflow CX (agents services):
https://cloud.google.com/python/docs/reference/dialogflow-cx/latest/google.cloud.dialogflowcx_v3.ser... 
Hope this helps!