with Qualaroo and Cohere?
This action makes a prediction about which label fits the specified text inputs best. See the documentation
Qualaroo is an advanced tool for collecting user feedback through surveys and analyzing those insights. With the Qualaroo API, you can programmatically manage your surveys, retrieve survey responses, and integrate user feedback into your data pipeline to enhance decision-making. On Pipedream, you can harness this API to automate the aggregation of survey data, trigger actions based on feedback, and sync insights across various platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
qualaroo: {
type: "app",
app: "qualaroo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.qualaroo.com/api/v1/nudges/{survey_id}/responses.json`,
auth: {
username: `${this.qualaroo.$auth.api_key}`,
password: `${this.qualaroo.$auth.api_secret}`,
},
})
},
})
The Cohere API enables the development of apps with advanced natural language understanding capabilities. Utilizing machine learning, it can help with tasks like text generation, summarization, sentiment analysis, and more. On Pipedream, you can seamlessly integrate Cohere's features into serverless workflows, triggering actions based on text input, processing large volumes of data, or even enhancing chatbots with more human-like responses.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cohere_platform: {
type: "app",
app: "cohere_platform",
}
},
async run({steps, $}) {
const data = {
"text": `Tokenize this!`,
}
return await axios($, {
method: "post",
url: `https://api.cohere.ai/small/tokenize`,
headers: {
Authorization: `Bearer ${this.cohere_platform.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})