with BotPenguin and JigsawStack?
Adds a new WhatsApp contact to your BotPenguin account. See the documentation
Recognize objects within a provided image and retrieve it with great accuracy. See the documentation
Assess sentiment of a provided text. Vibes can be positive, negative, or neutral. See the documentation
Validate any email address and determine deliverability as well as disposable status. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botpenguin: {
type: "app",
app: "botpenguin",
}
},
async run({steps, $}) {
const data = [
{
"profile": {
"userDetails": {
"name": "BPTest",
"contact": {
"email": "test@example.com",
"phone": {
"number": "90123456789",
"prefix": "91"
}
},
"tags": [],
"attributes": [],
"userProvidedName": "BPTest"
}
}
}
]
return await axios($, {
method: "post",
url: `https://api.v7.botpenguin.com/inbox/users/import`,
headers: {
Authorization: `Bearer ${this.botpenguin.$auth.access_token}`,
"botid": `${this.botpenguin.$auth.bot_id}`,
"authtype": `Key`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
jigsawstack: {
type: "app",
app: "jigsawstack",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.jigsawstack.com/v1/prompt_engine`,
headers: {
"x-api-key": `${this.jigsawstack.$auth.api_key}`,
},
})
},
})