with Campaign Monitor and Thoughtful GPT?
Creates a new subscriber on a specific list. See the documentation
Processes given content using a specified macro. See the documentation
Analyzes provided CSV data, generates queries, and creates data visualizations. See the documentation
Sends an intelligent transactional email to a specified recipient. See the documentation
Removes a subscriber from a mailing list given their email address. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
campaign_monitor: {
type: "app",
app: "campaign_monitor",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.createsend.com/api/v3.3/primarycontact.json`,
headers: {
Authorization: `Bearer ${this.campaign_monitor.$auth.oauth_access_token}`,
"Content-Type": `application/json; charset=utf-8`,
},
})
},
})
The Thoughtful GPT API lets you integrate advanced natural language processing into your workflows on Pipedream. Tap into the power of generative AI to create content, analyze text, or automate responses. With Pipedream, harness this API in serverless workflows that trigger from numerous events and connect to other apps for expanded functionality.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
thoughtful_gpt: {
type: "app",
app: "thoughtful_gpt",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://app.thoughtfulgpt.com/api/automations/me/`,
params: {
api_key: `${this.thoughtful_gpt.$auth.relay_api_token}`,
},
})
},
})