with Woopra and Cerebras?
Create a chat completion with Cerebras AI. See the documentation
The Woopra API lets you track customer interactions in real time, analyze customer behavior, and automate responses based on that behavior. Using Pipedream, you can create workflows that trigger on various events, push or pull data to/from Woopra, and connect Woopra with other apps to enhance your data-driven decision-making processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
woopra: {
type: "app",
app: "woopra",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://www.woopra.com/track/ce/`,
auth: {
username: `${this.woopra.$auth.app_id}`,
password: `${this.woopra.$auth.secret}`,
},
params: {
host: `pipedream.com`,
response: `json`,
cookie: `{your_cookie}`,
event: `{your_event_name}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cerebras: {
type: "app",
app: "cerebras",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cerebras.ai/v1/models`,
headers: {
Authorization: `Bearer ${this.cerebras.$auth.api_key}`,
},
})
},
})