with Thoughtful GPT and ServiceNow?
Processes given content using a specified macro. See the documentation
Analyzes provided CSV data, generates queries, and creates data visualizations. See the documentation
Retrieves the record identified by the specified sys_id from the specified table.
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}`,
},
})
},
})
The ServiceNow API lets developers access and manipulate records, manage workflows, and integrate with other services on its IT service management platform. These capabilities support automating tasks, syncing data across platforms, and boosting operational efficiencies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
servicenow: {
type: "app",
app: "servicenow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.servicenow.$auth.instance_name}.service-now.com/api/now/table/incident`,
headers: {
Authorization: `Bearer ${this.servicenow.$auth.oauth_access_token}`,
},
})
},
})