with 302.AI and Lob?
Enable your 302.AI model to invoke user-defined functions. Useful for conditional logic, workflow orchestration, and tool invocation within conversations. See documentation
Completely removes a postcard from production. This can only be done if the postcard has a send_date and the send_date has not yet passed. See docs here
Send a message to the 302.AI Chat API. Ideal for dynamic conversations, contextual assistance, and creative generation. See documentation
Classify input items into predefined categories using 302.AI models. Perfect for tagging, segmentation, and automated organization. See documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
_302_ai: {
type: "app",
app: "_302_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.302.ai/v1/models`,
headers: {
Authorization: `Bearer ${this._302_ai.$auth.api_key}`,
},
})
},
})
The Lob API provides a suite of automation capabilities focused on direct mail, address verification, and print management. With Lob, you can automate the sending of physical mail programmatically, verify addresses to ensure deliverability, and manage printing logistics for marketing campaigns or operational needs. It's a powerful tool for bridging the digital and physical mailing worlds, particularly useful for marketing, billing, and compliance communications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lob: {
type: "app",
app: "lob",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lob.com/v1/addresses`,
auth: {
username: this.lob.$auth.secret_api_key,
password: ''
},
})
},
})