REDCap Automated Survey Invitations (ASI)
Automated Survey Invitations (ASIs) allow REDCap to send survey invitations automatically when specified conditions are met. They are especially useful for follow-up surveys, scheduled outreach, longitudinal workflows, and any study that needs repeatable, rule-based survey distribution.
- Confirm the survey is enabled
- Confirm a valid email field is designated
- Open the correct survey’s ASI setup in Online Designer
- Write and test the trigger logic
- Choose the correct send timing
- Configure reminders only if needed
- Leave the ASI inactive until testing is complete
- Activate only after full end-to-end validation
On this page
What ASIs Are
Automated Survey Invitations are invitations that REDCap schedules and sends automatically when a defined condition becomes true. Unlike manual invitations sent through the Participant List, ASIs do not require a person to send each message individually. :contentReference[oaicite:2]{index=2}
ASIs are commonly used for:
- Follow-up surveys sent after a baseline survey
- Surveys sent after a delay, such as 7 days after enrollment
- Time-based or event-based invitations
- Conditional invitations based on study data
Requirements Before You Begin
Before setting up an ASI, make sure the following are already in place:
- The instrument is enabled as a survey
- A valid email field has been designated at the project or survey level
- The survey workflow and trigger conditions are fully planned
- If the project is longitudinal, you know which event the invitation belongs to
How ASIs Work
Every ASI consists of three core parts:
- Compose the invitation – subject line and message
- Define the trigger condition – what must happen for REDCap to schedule the invitation
- Define when to send – immediately, after a delay, or relative to a date/date-time field
Once the trigger condition becomes true, REDCap schedules the invitation. A separate process then sends it at the appropriate time. :contentReference[oaicite:5]{index=5}
ASI Setup Steps
To configure an ASI:
- Go to Online Designer
- Click Automated Invitations for the appropriate survey
- If the project is longitudinal, select the correct event
- Complete the four ASI sections:
- Step 1: Compose message
- Step 2: Define conditions
- Step 3: When to send
- Step 4: Activated?
Step 1: Compose Message
- Select the sender address
- Enter the subject line
- Enter the message body
- Keep the survey-link smart variable intact
Step 2: Define Conditions
Specify the condition that tells REDCap when the invitation should be scheduled.
Examples include:
- When a prior survey is completed
- When a field is populated
- When a calculated logic expression evaluates as true
Step 3: When to Send
Specify whether the invitation should be sent immediately, on the next chosen day/time, after a specific delay, or relative to a date/date-time field.
Step 4: Activated?
Save the ASI while it is inactive during setup and testing. Activate it only after the logic and timing are fully validated.
Writing ASI Logic
ASI logic can be simple or complex, but it should always be intentional, readable, and testable.
General guidance
- All fields in all forms and arms are available to ASI logic
- If a field has no value, REDCap treats it as an empty string
- For longitudinal projects, include the event reference when needed
- Use a dedicated “kill switch” field to stop invitations when needed
Example kill switch logic:
datediff([surgery_arm_2][surgery_date], 'today', 'd', true) >= 6 and [enrollment_arm_1][prevent_surveys] != '1'Using datediff
The datediff() function is often used in ASIs to trigger invitations based on elapsed time between dates. It is especially useful when invitations depend on a visit date, surgery date, or other participant-specific date field. :contentReference[oaicite:8]{index=8}
today variable should generally be used with datediff. Comparing today directly to a date field is unreliable. :contentReference[oaicite:9]{index=9}Scheduling and Timing Options
ASIs can be sent in several ways after the trigger condition becomes true:
- Immediately
- On next day/time
- After X days/hours/minutes
- Relative to a date or date-time field
Common use cases
- Send 7 days after baseline completion
- Send 14 days before a surgery date
- Send the next Monday at 9:00 AM after a trigger occurs
When sending based on participant-specific dates, date-validated or datetime-validated fields can be used in the timing options.
Reminders
ASI reminders can be enabled to re-send invitations if the participant has not completed the survey.
- Reminders are optional
- They can be configured with their own timing rules
- The maximum is five sends total: the original invitation plus up to four reminders :contentReference[oaicite:12]{index=12}
Longitudinal Projects
In longitudinal projects, ASI logic often needs to reference fields from events other than the current event.
When this is the case, prepend the variable with the unique event name:
[unique_event_name][variable_name]Unique event names can be found in Project Setup → Define My Events.
Re-evaluating ASIs
REDCap includes a Re-evaluate Automated Invitations option that can manually trigger ASI logic to be checked again for existing records. This is useful when:
- The ASI was created after records already existed
- Existing records were updated and may now meet the logic
- You need to catch records that should have had invitations scheduled earlier
Key Limitations and Cautions
- ASIs do not work with repeating instruments/events
- ASIs do not retroactively fire for existing records unless re-evaluated
- Once an ASI fires for a record, changing the logic later does not make it fire again automatically
- Piped values in the invitation are captured when the invitation is scheduled, not when it is eventually sent
- Manual invitations and ASIs can both be used, so duplicate outreach is possible if workflows are not carefully designed
Best Practices
- Use a dedicated stop-emails or prevent-surveys field as a kill switch
- Write logic that is readable and testable
- Test with realistic records before activation
- Be explicit about timing assumptions, especially when using date and date-time fields
- Keep reminders intentional rather than automatic by habit
- Use the Survey Invitation Log to monitor scheduled and sent invitations
- Document ASI workflows for the study team so everyone understands what is automated and what is manual