with Aidbase and Microsoft SQL Server?
Emit new event when a new knowledge item is added to a chatbot.
Triggers when a new column is added to a table. See the documentation
Emit new event when a new knowledge item is added to an email inbox.
Triggers when a new row is added or an existing row is updated. See the documentation
Emit new event when a new knowledge item is added to a ticket form.
Add a new question to a FAQ in Airbase. See the documentation
Executes a SQL query and returns the results. See the documentation
Add a video as a piece of knowledge to your Aidbase account. See the documentation
Create a new frequently asked questions (FAQ) list on your Aidbase account. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
aidbase: {
type: "app",
app: "aidbase",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.aidbase.ai/v1/status`,
headers: {
Authorization: `Bearer ${this.aidbase.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
With the Microsoft SQL Server API on Pipedream, you can automate your database operations and create powerful integrations. This API allows you to execute queries, manage databases, and trigger actions based on data changes. Implementing workflows that react to database events, manipulate data, or synchronize SQL Server data with other services, becomes effortless with Pipedream's serverless platform.
import sql from "mssql"
export default defineComponent({
props: {
microsoft_sql_server: {
type: "app",
app: "microsoft_sql_server",
}
},
async run({steps, $}) {
const { host, username, password, port, database, encrypt,trustServerCertificate } = this.microsoft_sql_server.$auth
const conn_str = `Server=${host},${port};Database=${database};User Id=${username};Password=${password};Encrypt=${encrypt};TrustServerCertificate=${trustServerCertificate}`;
await sql.connect(conn_str);
return await sql.query`SELECT GETDATE()`
},
})