Function

Run Python compute workloads anywhere, with only a predict function.

Integrate the Function API with the Email API

Setup the Function API trigger to run a workflow which integrates with the Email API. Pipedream's integration platform allows you to integrate Function and Email remarkably fast. Free for developers.

New Email from the Email API

Get a unique address where you can send emails to trigger your workflow.

 
Try it
Send Yourself an Email with the Email API

Customize and send an email to the email address you registered with Pipedream. The email will be sent by notifications@pipedream.com.

 
Try it

Overview of Function

The Function API allows you to run code snippets in various programming languages directly through API calls. This capability can extend Pipedream workflows by enabling custom logic processing, data transformation, or any operation that requires server-side code execution without deploying or managing servers. By using the Function API, you can incorporate code that's beyond the native actions available within Pipedream, offering a flexible and powerful way to handle complex tasks in your automations.

Connect Function

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    function: {
      type: "app",
      app: "function",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.fxn.ai/user`,
      headers: {
        Authorization: `Bearer ${this.function.$auth.api_key}`,
      },
    })
  },
})

Connect Email

1
2
3
4
5
6
7
8
9
export default defineComponent({
  async run({ $ }) {
    const options = {
      subject: 'Your subject here',
      text: 'Your text here'
    };
    $.send.email(options);
  },
});