with Riku.AI and Retable?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
riku_ai: {
type: "app",
app: "riku_ai",
}
},
async run({steps, $}) {
const data = {
"Name": `YOUR NAME`,
"Secret": `${this.riku_ai.$auth.secret_key}`,
"Prompt ID": `YOUR PROMPT`,
"Input 1": `SaaS`,
"n": `1`,
}
return await axios($, {
method: "post",
url: `https://prompts.riku.ai/webhook/run`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})
The Retable API enables you to interact with your Retable data programmatically, allowing for seamless integration of your tables within your apps or workflows. With Pipedream, you can harness this capability to automate tasks, sync data across platforms, or trigger actions based on changes in your tables. Pipedream’s low-code platform provides the tools to create powerful serverless workflows using Retable API, without the need for extensive coding knowledge.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
retable: {
type: "app",
app: "retable",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.retable.io/v1/public/workspace`,
headers: {
"ApiKey": `${this.retable.$auth.api_key}`,
},
})
},
})