In a previous blog post, we've shown how we can use the Vertex AI task to easily access the power of Google Vertex AI from Application Integration. This blog post will exemplify a real use-case of that. We firmly encourage you to understand it and consider how it could be applied to your use-cases - the ideas shown here are generic and could be applied in multiple scenarios!
The overall flow for this business process is shown below:
This fictional company uses a custom AppSheet app (but hey - it could be any sort of app - web, custom mobile… you name it!) for handling expense approvals. Also, this company standardizes on Jira Cloud for approvals of all sorts. Jira Cloud provides plenty of APIs for working with its objects - Issues, Tasks, Boards and much more. But this company had a few requirements:
Application Integration was their choice because…
As for the flow… Basically the client app needs to send an API call with some information (such as an Id for the expense and also the requester name) that would trigger the integration. Then, the integration would work on those inputs (maybe adding an Issue Description from them with GenAI!) and then, natively send the data to Jira to create a new approval issue. Finally - we also need to get notified from Jira about updates on the Issue approval process and inform (also via an API call) the client API of the changes - maybe with the current timestamp and status.
Cool! There's a lot of interesting portions on this flow, but let's now focus on the GenAI portion. Let's go!
For our use case, let's say that we want to generate a creative (or formal, or long, or short…) description for our approval. We could create static strings for all of that or… we could use GenAI!
The strategy used here is using Local Variables in App Integration with a "template prompt". Check the sample prompt template below:
Within business context, generate a short request for ticket approval. You are somewhat dramatic, human and sentimental when generating such requests.
Input: Generate a desperate approval for user Pedro.
Output: Please, please, PLEASE! Approve this ticket for Pedro, he is desperate!
Input: Generate a desperate approval for $requester$.
Output:
Prompt engineering is out of scope of this post, but notice we used the common "context" and "one-shot" strategy for the prompt - that explained the overall context/scenario of what should be done and we provided a single example. The point is - we can influence the LLMs in many ways depending on the prompts we provide - more examples, more details, asking for structured data to be returned, asking for classification… It is a brand new world and experimentation is recommended!
Notice that I added a variable within the prompt definition - namely, $requester$. That is the input for the integration! So, dynamically, each and every LLM answer will be generated for a specific given user at each integration run!
Expanding on this idea of "Prompt Template as a Variable", we could have:
Similarly, we could also work with LLM-generated structured outputs. While the default behavior for GenAI LLMs is basically generating text, we could also create prompts that ask the model to generate output in a format such as JSON. With a few sample inputs in the prompt, the LLMs can do it quite nicely and this will attach nicely to App Integration Data Mapping and other tasks.
The generative AI use-cases alongside Application Integration are many and varied, here a few examples. Use them as examples to spark your imagination on what makes sense for your own use-cases and challenges!
There are many scenarios! The point is that we can use Application Integration as a no-code platform for templatizing, selecting, parallelizing, processing and concatenating both LLM prompts and their outputs - unlocking the potential of LLMs without necessarily jumping into Python/Notebooks or a full MLOps pipeline!
While the Generative AI use cases are trending, many other useful Vertex / Google Cloud AI use cases can be achieved when joined with Application Integration.
Application Integration excels at simple, no-code data transformation, data handling and complex flow manipulation. Also, it is great for connecting with different business systems. Native tasks to connect with Google Cloud services - including Vertex AI - make it easy to authenticate and manipulate data for such services without needing to explicitly become an expert on them.
Generative AI will unlock many use-cases that were not possible or quite hard before it, without the need of custom training or deep ML/AI expertise. Application Integration can further accelerate such use-cases with no-code, which is quite useful for IT-Pro users that won't necessarily work with Python, AI Notebooks but rather prefer a no-code approach.
Note : Special thanks to @vsy for collaborating with me on the blog posts!
Love this- From now all my travel requests are gonna use the Dramatic text from Gen AI to have it approved in no-time. 🙂