# Creating a workflow query

**URL:** <https://community.hubspot.com/t/creating-a-workflow-query/107392>\
**Category:** Lists, Lead Scoring & Workflows\
**Tags:** professional\
**Created:** [May 17, 2024, 7:26am UTC](https://community.hubspot.com/t/creating-a-workflow-query/107392 "2024-05-17T07:26:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSamuel85](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JSamuel85](https://community.hubspot.com/u/JSamuel85)\
**Post date:** [May 17, 2024, 7:26am UTC](https://community.hubspot.com/t/creating-a-workflow-query/107392/1 "2024-05-17T07:26:42Z")

</div>

Could I set up a workflow in HubSpot that sends the RSVP email prompt only to people who haven’t filled in the RSVP form we previously sent, Or something similar?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [May 17, 2024, 7:31am UTC](https://community.hubspot.com/t/creating-a-workflow-query/107392/2 "2024-05-17T07:31:34Z")

</div>

Hi @JSamuel85,

Yes, that works 🙂 In a contact-based workflow, you would do the following:

1. Add the send of the first automated email
2. Add a delay after the email
3. Add the send the second automated email (reminder)
4. In the workflow goals, specify the RSVP form submission as a goal: [Use goals in contact-based workflows](https://knowledge.hubspot.com/workflows/use-goals-in-contact-based-workflows)

Contacts will now receive both emails, spaced by a delay of course, unless they meet the workflow goal - which will remove them from the workflow immediately.

Best regards!
