with Cohere and Rapid URL Indexer?
Download the report for a specific project. See the documentation
This action makes a prediction about which label fits the specified text inputs best. See the documentation
Get the status of a specific project. See the documentation
Submit a new project for indexing. See the documentation
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,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rapid_url_indexer: {
type: "app",
app: "rapid_url_indexer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rapidurlindexer.com/wp-json/api/v1/credits/balance`,
headers: {
"X-API-Key": `${this.rapid_url_indexer.$auth.api_key}`,
},
})
},
})