with Tailscale and Wonderchat?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tailscale: {
type: "app",
app: "tailscale",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.tailscale.com/api/v2/tailnet/pipedream.com/users`,
headers: {
Authorization: `Bearer ${this.tailscale.$auth.oauth_access_token}`,
},
})
},
})
The Wonderchat API lets you automate interactions with your Wonderchat account, streamlining conversations and enhancing customer engagement. On Pipedream, you can build workflows that trigger on specific events and automate tasks like sending messages, managing contacts, or integrating with CRMs. By coupling the Wonderchat API with Pipedream’s capabilities, you get a powerful synergy where you can seamlessly connect various apps and services, run serverless code, and manipulate data with ease.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wonderchat: {
type: "app",
app: "wonderchat",
}
},
async run({steps, $}) {
const data = {
"apiKey": `${this.wonderchat.$auth.api_key}`,
"chatbotId": `{{your_chatbot_id}}`,
"question": `{{your_queston}}`,
"chatlogId": `{{your_chatlog_id}}`,
"context": `{{your_context}}`,
}
return await axios($, {
method: "POST",
url: `https://app.wonderchat.io/api/v1/chat`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})