Crate sendgrid_flows

source ·
Expand description

SendGrid integration for

Quick Start

To get started, let’s write a very tiny flow function.

use openai_flows::{Email, send_email};
use slack_flows::{listen_to_channel};

pub fn run() {
    listen_to_channel("myworkspace", "mychannel", |sm| {
        let email = Email {
            to: vec![""],
            subject: "Hi",
            content: sm.text
        send_email("", email);

When the Slack message is received, send email using send_email.


  • Struct for the email.


  • Send email with provided email parameter.