with Perplexity and Terminus App?
Generates a model's response for the given chat conversation. See the documentation
The Perplexity API offers advanced natural language processing capabilities, enabling users to generate answers, summaries, and insights from texts. Leveraging this API on Pipedream allows for the automation of content analysis, intelligent alert systems, and dynamic data enrichment, integrating seamlessly with various data sources and services for real-time processing.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
perplexity: {
type: "app",
app: "perplexity",
}
},
async run({steps, $}) {
const data = {
"model": "mistral-7b-instruct",
"messages": [
{
"role": "system",
"content": "Be precise and concise."
},
{
"role": "user",
"content": "Can you tell me about the integration platform called Pipedream?"
}
]
}
return await axios($, {
method: "post",
url: `https://api.perplexity.ai/chat/completions`,
headers: {
Authorization: `Bearer ${this.perplexity.$auth.api_key}`,
"accept": `application/json`,
},
data,
})
},
})
The Terminus App API enables you to automate your account-based marketing operations by connecting Terminus with various other tools and services. Through Pipedream, you can craft serverless workflows that interact with the Terminus platform, such as syncing contact lists, triggering campaigns based on external events, and analyzing marketing performance data. Pipedream's no-code platform allows you to quickly create integrations with the Terminus App API and hundreds of other services with minimal setup.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
terminus_app: {
type: "app",
app: "terminus_app",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.terminusapp.com/v1/projects`,
auth: {
username: `${this.terminus_app.$auth.api_key}`,
password: ``,
},
})
},
})