with Contentful (OAuth) and DocsBot AI?
Ask a question to a specific bot in a specific team. See the documentation
Upload a file to be used as a source. See the documentation
Contentful's Content Management API lets you manage content as data and integrate it seamlessly with any tech stack. On Pipedream, you can wield this power to automate content operations, sync data across platforms, and trigger workflows based on content events. For example, you could update an external database with new content entries, notify team members of content changes, or generate static sites when content updates.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
contentful: {
type: "app",
app: "contentful",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.contentful.com/spaces`,
headers: {
Authorization: `Bearer ${this.contentful.$auth.oauth_access_token}`,
},
})
},
})
DocsBot AI API transforms natural language into structured data, enabling the extraction and analysis of information from unstructured text. In Pipedream, you can leverage this API to automate workflows that require processing of text for sentiment analysis, summarization, or data extraction. With Pipedream's serverless platform, these capabilities can be integrated into diverse systems without writing complex infrastructure code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
docsbot_ai: {
type: "app",
app: "docsbot_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://docsbot.ai/api/teams/`,
headers: {
Authorization: `Bearer ${this.docsbot_ai.$auth.api_key}`,
},
})
},
})