⚙️Generative Pipelines
What generative pipelines are and how they used AI to automate processes
Last updated
What generative pipelines are and how they used AI to automate processes
Last updated
The concept of generative pipelines references the integration of generative services with other inputs and outputs, including application services, hardware, human beings, or just about anything you can think of. For example, let's review a customer complaint process within our bicycle rental application. Where a customer tried to withdraw funds, but the customer is reporting there was a system outage for a week, called customer 12 times, and was still unable to withdraw their money. A generative pipeline could automate that review process to:
Consume your business logic of which customer communications qualify as a complaint
Analyze the customer complaint and return a recommendation based actions you permit your AI to perform on your behalf.
Use that recommendation to update other systems in your organization through APIs.
Use APIs to communicate out to the customer the status of their complaint.
Prompt stores can make your prompts much more efficient.
Here's a sample implementation that connects ChatGPT, Salesforce, and Twilio as part of the complaint resolution process:
In this example, we first call the getChatGptResponse
function, which sends the customer complaint text to the ChatGPT API and receives an AI-generated response and recommended action. Based on the recommended action, we can create a case in Salesforce using the createSalesforceCase
function, issue a refund with the issueRefund
function (if necessary), and finally send an email to the customer using the sendEmail
function.
Please note that you'll need to replace the placeholders like "your_openai_api_key"
with your actual API keys, and implement the parseRecommendedAction
function to extract the recommended action from the AI-generated response according to your specific use case.
chatgpt-4