Apply large language models and generative AI to a variety of use cases
Go to siteThe Azure OpenAI Service API provides access to powerful AI models that can understand and generate human-like text. With Pipedream, you can harness this capability to create a variety of serverless workflows, automating tasks like content creation, code generation, and language translation. By integrating the API with other apps on Pipedream, you can streamline processes, analyze sentiment, and even automate customer support.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
azure_openai_service: {
type: "app",
app: "azure_openai_service",
}
},
async run({steps, $}) {
const data = {
"messages": [{ role: 'user', content: "Hello, world!" }],
}
return await axios($, {
method: "post",
url: `https://${this.azure_openai_service.$auth.resource_name}.openai.azure.com/openai/deployments/${this.azure_openai_service.$auth.deployment_name}/chat/completions?api-version=2023-05-15`,
headers: {
"Content-Type": `application/json`,
"api-key": `${this.azure_openai_service.$auth.api_key}`,
},
data,
})
},
})
Content Generation Pipeline: Ingest data from a webhook, feed it into the Azure OpenAI Service API to generate articles, summaries, or reports, and then directly post the content to a CMS like WordPress or a platform like Medium.
Real-time Customer Support: Connect the Azure OpenAI Service API to your CRM, like Salesforce, to generate automatic responses to customer inquiries. Analyze incoming messages for intent, and use the API to craft replies or route the customer to the appropriate service channel.
Language Translation App: Create an app that takes input from a Google Sheet, translates the text into multiple languages using the Azure OpenAI Service API, and stores the translations back in the sheet or another database, streamlining the process of multilingual content creation.
Create completions for chat messages with the GPT-35-Turbo and GPT-4 models. See the documentation
Classify items into specific categories. See the documentation
Creates an image given a prompt, and returns a URL to the image. See the documentation
Summarizes a text message with the GPT-35-Turbo and GPT-4 models. See the documentation
Translate text from one language to another. See the documentation
Azure OpenAI Service uses API keys for authentication. When you connect your Azure OpenAI Service account, Pipedream securely stores the keys so you can easily authenticate to Azure OpenAI Service APIs in both code and no-code steps.
Before you start, you'll need to deploy a model in the Azure OpenAI Service.
Once that's done, enter the name of your Azure OpenAI resource, the deployment name you chose when you deployed the model, and your Azure OpenAI key below.