with Tisane Labs and Filter?
Analyze text for language, entities, sentiment, and other insights. See the documentation
Detects languages used in the specified text fragment. See the documentation
Finds and returns a URL of an image (Creative Commons) best describing the text. See the documentation
Translate text between supported languages. See the documentation
The Tisane Labs API offers advanced text analysis capabilities, focusing on abusive content detection and linguistic insights. With it, you can automate content moderation, extract entities, detect the sentiment, and identify the language of the text. In Pipedream, Tisane Labs API can be integrated into workflows to process text from various sources such as user comments, support tickets, or social media posts. By leveraging Pipedream's serverless platform, you can create real-time, event-driven applications that respond to text analyses, connect with other services, and perform actions based on the insights gained from the Tisane Labs API.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tisane_labs: {
type: "app",
app: "tisane_labs",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.tisane.ai/languages`,
headers: {
"Ocp-Apim-Subscription-Key": `${this.tisane_labs.$auth.api_key}`,
},
})
},
})
The Filter API in Pipedream allows for real-time data processing within workflows. It's designed to evaluate data against predefined conditions, enabling workflows to branch or perform specific actions based on those conditions. This API is instrumental in creating efficient, targeted automations that respond dynamically to diverse datasets. Using the Filter API, you can refine streams of data, ensuring that subsequent steps in your Pipedream workflow only execute when the data meets your specified criteria. This cuts down on unnecessary processing and facilitates the creation of more intelligent, context-aware systems.
export default defineComponent({
async run({ steps, $ }) {
let condition = false
if (condition == false) {
$.flow.exit("Ending workflow early because the condition is false")
} else {
$.export("$summary", "Continuing workflow, since condition for ending was not met.")
}
},
})