with Sierra Interactive and Anthropic (Claude)?
The Sierra Interactive API offers a suite of functions geared towards real estate professionals, enabling users to manage leads, property listings, and perform various CRM-related tasks. With Pipedream's serverless platform, you can build automated workflows that leverage the Sierra Interactive API to streamline your real estate business processes. Pipedream facilitates the integration of Sierra Interactive with numerous other apps, such as Google Sheets for data storage, Slack for notifications, or Mailchimp for email marketing, to create powerful, customized solutions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sierra_interactive: {
type: "app",
app: "sierra_interactive",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.sierrainteractivedev.com/users`,
headers: {
"Content-Type": `application/json`,
"Sierra-ApiKey": `${this.sierra_interactive.$auth.api_key}`,
"Sierra-OriginatingSystemName": `@PipedreamHQ/pipedream v0.1`,
},
})
},
})
The Anthropic (Claude) API offers a conversational AI that can be leveraged for a variety of applications, ranging from answering questions to generating content or providing customer support. In Pipedream, you can create powerful workflows that utilize the capabilities of Claude to automate responses, analyze text, or enhance data with AI-generated insights. Pipedream's serverless platform simplifies integrating Claude into your processes with other apps and services for seamless automation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
anthropic: {
type: "app",
app: "anthropic",
}
},
async run({steps, $}) {
const data = {
"model": "claude-3-haiku-20240307",
"max_tokens": 300,
"messages": [
{"role": "user", "content": "Write me a haiku about Pipedream workflows."}
]
}
return await axios($, {
method: "post",
url: `https://api.anthropic.com/v1/messages`,
headers: {
"x-api-key": `${this.anthropic.$auth.api_key}`,
"anthropic-version": `2023-06-01`,
},
data,
})
},
})