I'm creating and integrating a chatbot into my React app by creating a conversational agent in vertex AI agent builder. The data store agent's data source is a bucket. I'm using IaC to provision my resources. I came to find that there are no terraform modules for Vertex AI. The ones I could find are related to discovery engine:
1)https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/discovery_engine_ch...
2)https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/discovery_engine_data...
I've seen the documentation is deprecated now:
https://cloud.google.com/discovery-engine/media/docs
I'm trying to understand where does the discovery engine come into play here if it does at all so i can you these modules as I couldn't find the vertex AI ones?
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/dialogflow_cx_agent
Is this the same as conversational agent which I want to use for my app or is this different but i can still go ahead?
I'm just new to this so thank you for reading and helping.
Hi @ethan_tries,
Welcome to Google Cloud Community!
You're building a chatbot with Google's Vertex AI Agent Builder and want to use Terraform for infrastructure management. Here's how to approach it:
There isn't a direct Terraform integration for Agent Builder itself. However, you can effectively use Terraform to manage the necessary supporting infrastructure and, if needed, switch to a more hands-on approach with Dialogflow CX.
Option 1: Focus on Infrastructure (Recommended for most projects):
Build your chatbot using the Agent Builder's user interface. Then, use Terraform to manage the essential cloud components:
This approach is faster and simpler, letting you leverage Agent Builder's ease of use while still benefiting from Terraform's infrastructure management capabilities.
Option 2: Full Control with Dialogflow CX:
For more complex chatbots or if you need full Terraform control, build your chatbot directly within Dialogflow CX. You can manage it completely through Terraform using the google_dialogflow_cx_agent resource. This requires more Dialogflow expertise but provides complete automation within your Terraform infrastructure.
In summary, you may use Terraform to manage the cloud infrastructure (storage, security) around your Agent Builder project. Choose the Agent Builder UI for quick development or Dialogflow CX for full Terraform control.
Here are additional Google Cloud documentation links that you may find helpful:
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.
Hey thanks for the info. I need clarification on few things.
Can I use discovery engine for my use case which is vertex AI search now which makes it easier if I am dealing with large data?
<URL removed by staff>
Timestamp: 7:22 here I can select "search with follow-ups and" thereby acting like conversational search maybe like a chatbot and integrate into my app, right?
If yes, can I use the modules I've mentioned above to create the resources?
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |