api.video

Features

Documentation

Send Messages in Slack Any Time You Create a New Video

April 5, 2021 - Erikka Innes in no code

Welcome back to our 'So Easy, It's a Zap!' series. In this installment, we'll look at a zap that lets you combine api.video with Slack messaging without writing any code. A zap is what happens when you use Zapier to combine two or more applications together. You use one application to define a trigger that will set off an action in another application or the same application. If you want more details, check out our introductory article about Zapier - 'Create Video Integrations Without Coding - So Easy It's a Zap!'.

Prerequisites

You'll need a few things to successfully complete this project:

  • api.video account
  • Slack account
  • Zapier account

Slack will walk you through everything and we provide links to the content you'll need to set yourself up with Slack.

Sign up for Slack

If you don't have a Slack account with your company, or you're just trying this out on your own, you can get started with Slack on their Get Started page.

Zapier Sign up and Review

When you use Zapier to combine products you use events and actions. An event is something you want Zapier to check for. Whenever Zapier finds that the event you specify happens, it triggers an action. You can configure an event and an action using the same application in Zapier, but it's more common to have one application provide a trigger event, and another application respond with an action event. Today, api.video will provide the trigger event and Slack will provide the action event.

Sign up by clicking the Sign Up button at https://zapier.com

Configure api.video as the Trigger Event

Api.video will be the trigger event for your Zap. Each time you add a new video in api.video, it will trigger Slack to update a channel with a message notifying everyone that its available.

To get started, do the following:

  1. Sign up and log in to Zapier.
  2. Under Popular Ways to Connect api.video and Slack, next to Send Slack messages for new videos created on api.video, click Try It.
api.video, slack, zapier, apivideo
  1. Under Connect Your Apps, choose your api.video account. If it's not set up, you'll need to go through a walk through to add it, or reconnect it if it expired. You can connect or reconnect by clicking on either Connect or Please reconnect it here. Then, get your api.video from your dashboard, and add it in the field for your API key when prompted with 'Allow Zapier to access your api.video Account?' Click Yes, Continue.

Configure Slack as the Action Event

Slack will be your action event. It will deliver a notification to a Slack channel you choose every time a new video is added in your api.video account.

  1. Now you need to sign in to Slack. You'll have similar choices to those you had for api.video. In this case, we don't have a Slack account connected in Zapier yet, so we'll click Sign in to Slack. Sign in to your workspace, and click Continue. You'll walk through the steps you'd use to sign in, giving permission to Zapier to connect for you.
  2. After you've connected, use the drop-down to choose a slack channel to test with.
  3. Turn on your Zap so you can test it.

Test Your Zap

To test your Zap, add a new video to the account associated with your API key. You can do so programmatically, or you can test by doing the following:

  1. Open your api.video dashboard.
  2. Click Upload.
  3. Add a video from your computer.
  4. Wait to see if Zapier senses the video was added, and then Slack will report it in the channel. You're using a polling method, so it might take a minute or two.
  5. If nothing happens, then open Zapier on your Zaps page and click the drop-down arrow next to your Zap.
  6. Click Run Zap. It should work within a few minutes.

You can set up other Zaps too. Check out our entire 'So Easy its a Zap!' series in the No-code section of our blog.

Erikka Innes

Developer Evangelist

Get started now

Connect your users with videos