with News API and Voiceflow?
Search through millions of articles from over 150,000 large and small news sources and blogs. See the documentation
Retrieve live top and breaking headlines for a category, single source, multiple sources, or keywords. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
news_api: {
type: "app",
app: "news_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://newsapi.org/v2/everything`,
headers: {
"X-Api-Key": `${this.news_api.$auth.api_key}`,
},
params: {
"q": `Computer Science`,
},
})
},
})
The Voiceflow API provides programmatic access to Voiceflow's conversational AI platform, enabling users to create, update, and deploy voice and chat applications. Through Pipedream, developers can automate workflows involving Voiceflow projects, such as syncing conversation designs with external tools, triggering customer support messages based on user interactions, or compiling analytics from user sessions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
voice: {
type: "app",
app: "voice",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.voiceflow.com/v3alpha/knowledge-base/faqs`,
headers: {
"Accept": `application/json`,
"Authorization": `${this.voice.$auth.api_key}`,
},
})
},
})