# Campaign Condition to trigger action in business/social hours

**URL:** <https://forum.mautic.org/t/campaign-condition-to-trigger-action-in-business-social-hours/20193>\
**Category:** Product Support\
**Tags:** mautic-3\
**Created:** [July 17, 2021, 5:50am UTC](https://forum.mautic.org/t/campaign-condition-to-trigger-action-in-business-social-hours/20193 "2021-07-17T05:50:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tornmarketing](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tornmarketing/32/11603_2.png) [@tornmarketing](https://forum.mautic.org/u/tornmarketing)\
**Post date:** [July 17, 2021, 5:50am UTC](https://forum.mautic.org/t/campaign-condition-to-trigger-action-in-business-social-hours/20193/1 "2021-07-17T05:50:48Z")

</div>

**Your software**  
My Mautic version is: 3.3.3  
My PHP version is: 7.4

**Your problem**  
My problem is:  
We have an autoresponder that we have setup in a campaign, looking for a tool that will allow us to trigger an action (email, sms, webhook or something) only in social hours for specific circumstances.

ie if now() is between 9am and 5pm, then send/trigger action  
else schedule in action for the next social window 9.00am

Keen to have it to setup in a way that its aware of the next social window, not having to setup split logic that would be 5pm - 12am (set tomorrow 9am) and 12am - 9am (today 9am)

Objectively, we get alot of enquiries after hours in Real Estate.

1. We are trying to send them the auto responder email and confirmation sms immediately
2. Then schedule in a follow up introduction email and sms in morning along with a webhook to 3rd party software which would then trigger other functionality.

There after the campaign would then return back to a common DRIP campaign relative to the date of enquiry.
