with Microsoft Sharepoint and OpenAI (ChatGPT)?
Emit new event when a new file is created in Microsoft Sharepoint.
Emit new event when a new folder is created in Microsoft Sharepoint.
Emit new event when a new list item is created in Microsoft Sharepoint.
Emit new event when a list item is updated in Microsoft Sharepoint.
Emit new event when a new batch is completed in OpenAI. See the documentation
Create a new folder in SharePoint. See the documentation
The Chat API, using the gpt-3.5-turbo or gpt-4 model. See the documentation
Create a new item in Microsoft Sharepoint. See the documentation
Chat using the web search tool. See the documentation
Create a sharing link for a DriveItem. See the documentation
The Microsoft SharePoint Online API opens up a world of possibilities for integrating your SharePoint content with other services and automating tasks. With Pipedream, you can harness this API to create powerful workflows that trigger on events in SharePoint, manipulate data, and connect with countless other apps. Create custom automations for document management, team notifications, content moderation, and more, without the need to manage infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sharepoint: {
type: "app",
app: "sharepoint",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/me`,
headers: {
Authorization: `Bearer ${this.sharepoint.$auth.oauth_access_token}`,
},
})
},
})
OpenAI provides a suite of powerful AI models through its API, enabling developers to integrate advanced natural language processing and generative capabilities into their applications. Here’s an overview of the services offered by OpenAI's API:
Use Python or Node.js code to make fully authenticated API requests with your OpenAI account:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openai: {
type: "app",
app: "openai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.openai.com/v1/models`,
headers: {
Authorization: `Bearer ${this.openai.$auth.api_key}`,
},
})
},
})