Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
Calculates an output based on your created flow in Flowise. See the documentation
Send a simple or structured message (using embeds) to a Discord channel
The Discord API interacts seamlessly with Pipedream, empowering you to craft customized automations and workflows for your Discord server. With this powerful integration, you can automate tasks like message posting, user management, and notifications, based on a myriad of triggers and actions from different apps. These automations can enhance the Discord experience for community moderators and members, by synchronizing with external tools, organizing community engagement, and streamlining notifications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
discord: {
type: "app",
app: "discord",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://discord.com/api/users/@me`,
headers: {
Authorization: `Bearer ${this.discord.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
The FlowiseAI API offers powerful AI-driven capabilities to enhance data with smart predictions and insights. In Pipedream, you can leverage this API to automate tasks, analyze large sets of data, and build intelligent workflows that respond to the AI's output. FlowiseAI can pair with various apps on Pipedream to enrich CRM data, optimize marketing campaigns, or streamline customer support processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
flowiseai: {
type: "app",
app: "flowiseai",
}
},
async run({steps, $}) {
return await axios($, {
method: "POST",
url: `https://pipedreamtest.onrender.com/api/v1/prediction/{{your_chatflow_id}}`,
headers: {
Authorization: `Bearer ${this.flowiseai.$auth.api_key}`,
"Content-Type": `application/json`,
},
data: {
question: "{{your_prompt}}"
}
})
},
})