CustomGPT lets you easily build your own chatbot with your own data.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
CustomGPT API harnesses the power of generative AI to create custom chatbots tailored to specific needs or data sets. With Pipedream's serverless platform, you can integrate CustomGPT into complex workflows, triggering custom AI responses based on events from over 800+ apps. Automate tasks like customer support, personalized content creation, or data analysis by tapping into the rich capabilities of CustomGPT and Pipedream's seamless orchestration.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
customgpt: {
type: "app",
app: "customgpt",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.customgpt.ai/api/v1/projects`,
headers: {
Authorization: `Bearer ${this.customgpt.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})