with Database and Voiceflow?
The Database API on Pipedream allows users to execute SQL commands directly within workflows, enabling rich and dynamic data manipulation and storage. It supports PostgreSQL, MySQL, and SQLite, making it a versatile option for managing data across various database systems. With this API, users can perform tasks such as data insertion, querying, updates, and deletions, directly within their automations, facilitating real-time data processing and integration across multiple platforms.
import postgresql from "@pipedream/postgresql";
export default {
props: {
postgresql,
sql: {
type: "sql",
auth: {
app: "postgresql",
},
label: "PostreSQL Query",
},
},
async run({ $ }) {
const args = this.postgresql.executeQueryAdapter(this.sql);
const data = await this.postgresql.executeQuery(args);
return data;
},
};
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}`,
},
})
},
})