with AmeriCommerce and Hugging Face?
Emit new event when a customer is created in your Americommerce store. See the documentation
Emit new event when a product is added to your Americommerce store. See the documentation
Emit new event when a new valid order (not declined or cancelled) is created in your Americommerce store. See the documentation
Changes the status of an existing order. See the documentation
Want to have a nice know-it-all bot that can answer any question?. This action allows you to ask a question and get an answer from a trained model. See the docs
Creates a new order or updates an existing one. See the documentation here and here
This task reads some image input and outputs the likelihood of classes. This action allows you to classify images into categories. See the docs
This task is well known to translate text from one language to another. See the docs
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
americommerce: {
type: "app",
app: "americommerce",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.americommerce.$auth.subdomain}.americommerce.com/api/v1/products.json`,
headers: {
"X-AC-Auth-Token": `${this.americommerce.$auth.api_token}`,
}
})
},
})
The Hugging Face API provides access to a vast range of machine learning models, primarily for natural language processing (NLP) tasks like text classification, translation, summarization, and question answering. It lets you leverage pre-trained models and fine-tune them on your data. Using the API within Pipedream, you can automate workflows that involve language processing, integrate AI insights into your apps, or respond to events with AI-generated content.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hugging_face: {
type: "app",
app: "hugging_face",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://huggingface.co/api/whoami-v2`,
headers: {
Authorization: `Bearer ${this.hugging_face.$auth.access_token}`,
},
})
},
})