with Splynx and Anthropic (Claude)?
Creates a new customer with the provided details. See the documentation
Creates a new internet service with specified details. See the documentation
Updates information of an existing customer. See the documentation
The Splynx API provides a gateway to manage and automate Internet Service Provider (ISP) tasks such as billing, networking, and customer management. By tapping into this API via Pipedream, you can create robust integrations and workflows that streamline operations, enhance customer service, and drive data-driven decisions. Pipedream's platform enables the connection of Splynx's features with hundreds of other apps without the need for extensive coding, facilitating task automation and data synchronization in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
splynx: {
type: "app",
app: "splynx",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.splynx.$auth.subdomain}.splynx.app/api/2.0/admin/customers/customer`,
headers: {
"Authorization": `Splynx-EA (access_token=${this.splynx.$auth.oauth_access_token})`,
},
})
},
})
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,
})
},
})