with Axesso Data Service - Amazon and Anthropic (Claude)?
Requests product detail information using Axesso Data Service. See the documentation
Lists reviews for an Amazon product using Axesso Data Service. See the documentation
Search Amazon products by keyword using Axesso Data Service. See the documentation
The Axesso Data Service - Amazon API lets you tap into a wealth of data from Amazon, including product searches, price trends, and reviews. In Pipedream, you can harness this data to drive insights, track products, and create custom notifications or reports. Pipedream’s serverless platform simplifies the process of setting up automated workflows that use the Axesso API to respond to events and perform actions in other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
axesso_data_service: {
type: "app",
app: "axesso_data_service",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.axesso.de/amz/amazon-lookup-product`,
headers: {
"axesso-api-key": `${this.axesso_data_service.$auth.api_key}`,
},
params: {
url: `https://www.amazon.com/dp/B09938DVH2`,
},
})
},
})
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,
})
},
})