Skip to content

Zoom Automations

How to Automatically Delete a Zoom Meeting a Few Days After a Session

A Zoom link that works forever is a link that can be shared forever. Zapify can create a meeting when somebody buys a session, email them the join link, and then delete the meeting a few days later, all in one automation. It uses the free A product is purchased trigger, Create a meeting, Send an email and Delete a meeting with a delay. A free Zoom account is enough. Zoom and delays are Zapify PRO.

What this automation does

  • Trigger: A product is purchased (WC_PRODUCT_PURCHASED, WooCommerce)
  • Action 1: Create a meeting (ZOOM_CREATE_MEETING, Zoom)
  • Action 2: Send an email (WP_SEND_EMAIL, WordPress)
  • Action 3: Delete a meeting (ZOOM_DELETE_MEETING, Zoom), delayed by 3 days

When the product is bought, Zapify creates the meeting and emails the customer the link. After the delay, the same automation deletes that meeting using the Meeting ID it saved earlier, so the link no longer works.

Before you start

  • WooCommerce installed and active, with a product for the session.
  • A start time for the session, from a booking plugin's field on the order or a fixed time. Delays are a Zapify PRO feature; see Delays.
  • A Zoom account (a free Basic account is enough) with a Server-to-Server OAuth app created and activated, with these scopes: meeting:write:admin, meeting:read:admin and user:read:admin. The steps are in Zoom integration for WordPress.

PRO feature

Zoom is a Zapify PRO integration and needs a Connection under Settings → Connections. It works with a free Zoom account. The A product is purchased trigger used here is free.

How to build the automation

Step 1: Connect Zoom

Skip this step if you already have a Zoom connection.

  1. Go to Settings → Connections and click Add New.

Open the Connections tab

  1. Choose Zoom, paste in your Account ID, Client ID and Client secret from your Server-to-Server OAuth app, and name the connection something like My Zoom.

Add the Zoom connection

  1. Click Test. Zapify asks Zoom for a token and answers Connected to Zoom as followed by the account's email. If a credential is wrong it says so, so you find out before building anything.
  2. Save.

See Zoom integration for WordPress for how to create the app, and Connections for how this screen works generally.

Step 2: Create a new automation

  1. In the WordPress admin, go to Zapify → Automations.
  2. Click Add New to open the builder.
  3. Name it clearly, such as Create a Zoom meeting and clean it up afterwards.

Create a new automation

Step 3: Add the "A product is purchased" trigger

  1. Click Add Trigger.

Add a trigger

  1. Choose WooCommerce as the app.

Select WooCommerce as the trigger

  1. Select A product is purchased.

Select A product is purchased

  1. In the Product field, choose the session product.

Step 4: Add the "Create a meeting" action

  1. Click Add Action.

Add an action

  1. Choose Zoom as the app.

Select Zoom as the action

  1. Select Create a meeting.

Select Create a meeting

Step 5: Configure the action

Field Required What to enter
Connection Yes The Zoom connection from Step 1.
Host Yes The Zoom user who will host it. A free Zoom account has one user, so there is only one to pick.
Topic Yes Session with {Billing first name}
Start Yes The time of the session, from a booking field on the order or a fixed time.
Time zone No Leave on Site time zone, or pick the time zone the meeting is held in.
Duration (minutes) No For example 30. The default is 60. Free Zoom accounts limit meetings with three or more people to 40 minutes.

Step 6: Add the "Send an email" action

  1. Click Add Action.

Add an action

  1. Choose WordPress as the app.

Select WordPress as the action

  1. Select Send an email.

Select Send an email

Step 7: Configure the action

Field Required What it does
To Yes Recipient address, usually a token.
Subject Yes The subject line.
Format Yes HTML (default) or Plain text.
Body Yes The message. Insert tokens with the {} button.

For example:

  • To: the Billing email token
  • Subject: Your session is booked
  • Body: Join your session here: {Join URL}. The passcode is {Passcode}.

Step 8: Add the "Delete a meeting" action

  1. Click Add Action.

Add an action

  1. Choose Zoom as the app.

Select Zoom as the action

  1. Select Delete a meeting.

Select Delete a meeting

Step 9: Configure the action

Field Required What to enter
Connection Yes The Zoom connection from Step 1.
Host No Leave empty. It only fills the list, and you will use a token.
Meeting Yes Insert the Meeting ID token from the Create a meeting action.

Step 10: Add the delay

  1. Open the Delete a meeting action's menu and choose Add a delay.
  2. Set the wait to 3 days. Choose a wait that is longer than the session itself, so the meeting is never deleted early.

The tokens from the earlier actions are still there when the wait is over. See Delays for how the waiting works. It is a minimum, not an exact moment.

Step 11: Set the steps Live and save

Each trigger and action has its own Live / Off / Draft switch. A new automation starts as a Draft and does nothing until its steps are Live.

  1. Set the trigger and every action to Live.
  2. Click Save.

Set the automation live

Step 12: Test it

Set the delay to 1 minute while you test. Place a test order, watch the meeting appear in Zoom, then watch it disappear. Then set the delay back to what you want.

Tokens you can use

Token What it holds
Billing email / Billing first name / Billing last name The customer's details from the order.
Product names / Order number / Order total What was bought and the order it belongs to.

The Create a meeting action makes four tokens available to later actions: Meeting ID, Join URL, Start URL (host) and Passcode.

Conclusion

Create, send, clean up: one automation covers the whole life of the meeting. Make sure the delay is longer than the session, because a deleted meeting cannot be joined or restored.

FAQs

Is this free in Zapify?

The WooCommerce trigger and the Send an email action are free. Zoom and delays need an active Zapify PRO licence, and Zoom needs a Connection.

Does this work with a free Zoom account?

Yes. Everything Zapify does here is available on a free Zoom account. Zoom's own free-plan rules still apply, including its 40-minute limit on meetings with three or more people.

How accurate is the delay?

It is a minimum, not an exact moment. Zapify delays run through a background queue that checks about once a minute. See Delays.

Why does this need the Meeting ID token?

Each order creates its own meeting. The Meeting ID token from the first action tells the delete step which meeting belongs to this order.

Do I need to write any code?

No. The three values from your Zoom app are the only things you copy from outside Zapify. Everything else is set up in the visual builder.

Was this page helpful?