← Slack + Rev.ai integrations

Get Transcript By Id with Rev.ai API on New Star Added (Instant) from Slack API

Pipedream makes it easy to connect APIs for Rev.ai, Slack and 1000+ other apps remarkably fast.

Trigger workflow on
New Star Added (Instant) from the Slack API
Next, do this
Get Transcript By Id with the Rev.ai API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a Slack trigger and Rev.ai action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Star Added (Instant) trigger
    1. Connect your Slack account
    2. Configure slackApphook
    3. Optional- Select one or more Event Types
  3. Configure the Get Transcript By Id action
    1. Connect your Rev.ai account
    2. Configure Job ID
    3. Select a accept
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event when a star is added to an item
Version:0.0.9
Key:slack-new-star-added

Slack Overview

With the Slack API, you can build all sorts of integrations and applications to
make your work life easier. Here are just a few examples:

  • Automate posting updates to your team channel
  • Create a bot to answer common questions
  • Integrate with your existing tools and services
  • Build a custom dashboard to track your team's progress
  • Create a bot to handle scheduling and meeting requests
  • And much more!

Trigger Code

import common from "../common/base.mjs";
import {
  events,
  eventsOptions,
} from "../common/constants.mjs";

export default {
  ...common,
  key: "slack-new-star-added",
  name: "New Star Added (Instant)",
  version: "0.0.9",
  description: "Emit new event when a star is added to an item",
  type: "source",
  dedupe: "unique",
  props: {
    ...common.props,
    // eslint-disable-next-line pipedream/props-description,pipedream/props-label
    slackApphook: {
      type: "$.interface.apphook",
      appProp: "slack",
      async eventNames() {
        return [
          "star_added",
        ];
      },
    },
    eventTypes: {
      type: "string[]",
      label: "Event Types",
      description: "The types of event to emit. If not specified, all events will be emitted.",
      options: eventsOptions,
      optional: true,
    },
  },
  methods: {
    ...common.methods,
    getSummary({ item: { type } }) {
      return `New star added - ${events[type] ?? type}`;
    },
    async processEvent(event) {
      if (this.eventTypes == null
        || this.eventTypes.length === 0
        || this.eventTypes.includes(event.item.type)) {
        return event;
      }
    },
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
SlackslackappThis component uses the Slack app.
N/AnameCache$.service.dbThis component uses $.service.db to maintain state between component invocations.
slackApphook$.interface.apphook
Event TypeseventTypesstring[]Select a value from the drop down menu:{ "label": "User", "value": "im" }{ "label": "Message", "value": "message" }{ "label": "File", "value": "file" }{ "label": "Channel", "value": "channel" }

Trigger Authentication

Slack uses OAuth authentication. When you connect your Slack account, Pipedream will open a popup window where you can sign into Slack and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Slack API.

Pipedream requests the following authorization scopes when you connect your account:

bookmarks:writecalls:readcalls:writechannels:historychannels:readchannels:writednd:readdnd:writeemoji:readfiles:readgroups:historygroups:readgroups:writeim:historyim:readim:writelinks:readlinks:writempim:historympim:readmpim:writepins:readpins:writereactions:readreactions:writereminders:readreminders:writeremote_files:readremote_files:sharestars:readstars:writeteam:readusergroups:readusergroups:writeusers:readusers:read.emailusers:writechat:write:botchat:write:usercommandsfiles:write:userusers.profile:writeusers.profile:readsearch:read

About Slack

Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.

Action

Description:Returns the transcript for a completed transcription job. Transcript can be returned as either JSON or plaintext format.
Version:0.1.1
Key:rev_ai-get-transcript

Action Code

// legacy_hash_id: a_3LiVkj
import { axios } from "@pipedream/platform";

export default {
  key: "rev_ai-get-transcript",
  name: "Get Transcript By Id",
  description: "Returns the transcript for a completed transcription job. Transcript can be returned as either JSON or plaintext format.",
  version: "0.1.1",
  type: "action",
  props: {
    rev_ai: {
      type: "app",
      app: "rev_ai",
    },
    id: {
      type: "string",
      label: "Job ID",
    },
    accept: {
      type: "string",
      description: "MIME type specifying the transcription output format.",
      options: [
        "text/plain",
        "application/vnd.rev.transcript.v1.0+json",
      ],
    },
  },
  async run({ $ }) {
    return await axios($, {
      url: `https://api.rev.ai/speechtotext/v1/jobs/${this.id}/transcript`,
      headers: {
        Authorization: `Bearer ${this.rev_ai.$auth.access_token}`,
        Accept: this.accept,
      },
    });
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Rev.airev_aiappThis component uses the Rev.ai app.
Job IDidstring
acceptacceptstringSelect a value from the drop down menu:text/plainapplication/vnd.rev.transcript.v1.0+json

Action Authentication

Rev.ai uses API keys for authentication. When you connect your Rev.ai account, Pipedream securely stores the keys so you can easily authenticate to Rev.ai APIs in both code and no-code steps.

Get your access token at https://www.rev.ai/access_token

About Rev.ai

Accurate Speech-to-Text APIs for all of your speech recognition needs

More Ways to Connect Rev.ai + Slack

Get Transcript By Id with Rev.ai API on New Message In Channels from Slack API
Slack + Rev.ai
 
Try it
Submit Transcription Job with Rev.ai API on New Message In Channels from Slack API
Slack + Rev.ai
 
Try it
Get Transcript By Id with Rev.ai API on New Direct Message (Instant) from Slack API
Slack + Rev.ai
 
Try it
Submit Transcription Job with Rev.ai API on New Direct Message (Instant) from Slack API
Slack + Rev.ai
 
Try it
Get Transcript By Id with Rev.ai API on New Mention (Instant) from Slack API
Slack + Rev.ai
 
Try it
New Message In Channels (Instant) from the Slack API

Emit new event when a new message is posted to one or more channels

 
Try it
New Direct Message (Instant) from the Slack API

Emit new event when a message was posted in a direct message channel

 
Try it
New Interaction Events from the Slack API

Emit new events on new Slack interactivity events sourced from Block Kit interactive elements, Slash commands, or Shortcuts.

 
Try it
New Mention (Instant) from the Slack API

Emit new event when a username or specific keyword is mentioned in a channel

 
Try it
New Reaction Added (Instant) from the Slack API

Emit new event when a member has added an emoji reaction to an item

 
Try it
Send Message to a Public Channel with the Slack API

Send a message to a public channel and customize the name and avatar of the bot that posts the message. See postMessage or scheduleMessage docs here

 
Try it
Send Message to a Private Channel with the Slack API

Send a message to a private channel and customize the name and avatar of the bot that posts the message. See postMessage or scheduleMessage docs here

 
Try it
Send a Direct Message with the Slack API

Send a direct message to a single user. See postMessage or scheduleMessage docs here

 
Try it
Send Message Using Block Kit with the Slack API

Send a message using Slack's Block Kit UI framework to a channel, group or user. See postMessage or scheduleMessage docs here

 
Try it
Reply to a Message Thread with the Slack API

Send a message as a threaded reply. See postMessage or scheduleMessage docs here

 
Try it