What do you want to automate

with Utopian Labs and MQTT?

Prompt, edit and deploy AI agents that connect to Utopian Labs, MQTT and 3,000+ 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
Get Run Status with the Utopian Labs API

Retrieve the status of an initiated run. See the documentation

 
Try it
Initiate Classification Run with the Utopian Labs API

Initiate a classification run of the R1-Classification agent. See the documentation

 
Try it
Initiate Copywriting Run with the Utopian Labs API

Initiate a copywriting run of the R1-Copywriting agent. See the documentation

 
Try it
Initiate Qualification Run with the Utopian Labs API

Initiate a qualification run of the R1-Qualification agent. See the documentation

 
Try it
Initiate Research Run with the Utopian Labs API

Initiate a research run of the R1 agent. See the documentation

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

Connect Utopian Labs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { UtopianLabs } from "utopianlabs";

export default defineComponent({
  props: {
    utopian_labs: {
      type: "app",
      app: "utopian_labs",
    }
  },
  async run({ steps, $ }) {
    const utopianLabs = new UtopianLabs({ apiKey: this.utopian_labs.$auth.api_key });
    return await utopianLabs.agents.runs.create({
      agent: "r1",
      lead: {
        company: {
          website: "https://pipedream.com",
        },
      },
    });
  },
})

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