What do you want to automate

with One AI and MQTT?

Prompt, edit and deploy AI agents that connect to One AI, MQTT and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Find Text in Clusters with the One AI API

Find clusters with a similar meaning of a given text. See the documentation

 
Try it
Summarize Text with the One AI API

Summarize a given text. See the documentation

 
Try it
Integrate the One AI API with the MQTT API
Setup the One AI API trigger to run a workflow which integrates with the MQTT API. Pipedream's integration platform allows you to integrate One AI and MQTT remarkably fast. Free for developers.

Overview of One AI

One AI API enables users to leverage advanced language AI to analyze and process text. On Pipedream, you can integrate One AI into serverless workflows to automate tasks like content summarization, emotion detection, or keyword extraction. By tapping into One AI's capabilities via Pipedream, you can enrich data, glean insights, and streamline content-centric operations with ease and efficiency.

Connect One AI

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    one_ai: {
      type: "app",
      app: "one_ai",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.oneai.com/api/v0/org/info`,
      headers: {
        "api-key": `${this.one_ai.$auth.api_key}`,
        "Accept": `application/json`,
      },
    })
  },
})

Connect MQTT

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import mqtt from "mqtt";

export default defineComponent({
  props: {
    mqtt: {
      type: "app",
      app: "mqtt",
    }
  },
  async run({ steps, $ }) {
    const url = `${this.mqtt.$auth.protocol}://${this.mqtt.$auth.host}:${this.mqtt.$auth.port}`;
    const options = {
      clientId: this.mqtt.$auth.client_id ?? `pipedream-client-${Date.now()}`,
      connectTimeout: 5000,
      username: this.mqtt.$auth.username,
      password: this.mqtt.$auth.password,
    };

    const client = mqtt.connect(url, options);

    await new Promise((resolve) => {
      client.on("connect", () => {
        client.publish("pipedream/test", 'Welcome MQTT + Pipedream users! ' + new Date().toISOString(), () => {
          client.end();
          console.log("Message sent");
          resolve();
        });
      });
    });

    return {
      mqttClientIsConnected: client.connected,
    };
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo