with Paigo and Azure OpenAI?
Emit new event when customers' usage reaches a threshold of 80% or 100% of their offerings. See the documentation
Emit new event when a customer account is created. See the documentation
Emit new event whenever a new invoice is generated. See the documentation
Increments the credit balance of a specific customer. See the documentation
Create completions for chat messages with the GPT-35-Turbo and GPT-4 models. See the documentation
Creates a new dimension inside the Paigo platform. See the documentation
Classify items into specific categories. See the documentation
Creates a new offering in the Paigo platform. See the documentation
The Paigo API offers a suite of financial tools for expense tracking, budgeting, and financial planning. In Pipedream, you can utilize these capabilities to automate personal finance management, analyze spending habits, and receive real-time notifications on financial events. Paigo's API can be integrated with various apps on Pipedream to streamline financial operations, from syncing transactions with accounting software to triggering alerts when budgets are nearing their limits.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
paigo: {
type: "app",
app: "paigo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.prod.paigo.tech/customers`,
headers: {
Authorization: `Bearer ${this.paigo.$auth.oauth_access_token}`,
},
})
},
})
The 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,
})
},
})