# Schedule Sessions with Customized Timing for Each Participant

**URL:** <https://forum.avicennaresearch.com/t/schedule-sessions-with-customized-timing-for-each-participant/1199>\
**Category:** How-To\
**Tags:** how-to:activity\
**Created:** [June 10, 2025, 3:55pm UTC](https://forum.avicennaresearch.com/t/schedule-sessions-with-customized-timing-for-each-participant/1199 "2025-06-10T15:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zahra](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/z/aeb1de/32.png) [@zahra](https://forum.avicennaresearch.com/u/zahra)\
**Post date:** [June 10, 2025, 3:55pm UTC](https://forum.avicennaresearch.com/t/schedule-sessions-with-customized-timing-for-each-participant/1199/1 "2025-06-10T15:55:00Z")

</div>

While Avicenna’s [triggering logics](https://forum.avicennaresearch.com/t/triggering-logics/1238/1) cover most use cases, you may want to prompt surveys on personalized schedules that require a more flexible approach. For complete flexibility, we offer the following options:

- [**Release an activity**](https://forum.avicennaresearch.com/t/activity-sessions/1235#p-2862-release-an-activity-13) to instantly deliver it to participants (for example, when immediate action is required).
- **Schedule individual sessions** [through the calendar interface](https://forum.avicennaresearch.com/t/activity-sessions/1235#p-2862-2-using-the-calendar-12).
- [**Upload a CSV file**](https://forum.avicennaresearch.com/t/activity-sessions/1235#p-2862-1-using-a-csv-file-11) to schedule sessions for multiple participants and activities within your study, all in a single upload.

In this article, we’ll focus on the third approach.

## The Situation

Your participant pool includes individuals scheduled for surgery on different dates. You want to prompt each participant with a daily survey at 9:00 AM for the 10 days immediately following their specific surgery date.

## What to Do?

To set up this personalized schedule, you will first prepare the necessary surveys in Avicenna and then generate the CSV file for upload. Before you begin, please review the important rules below to ensure your upload is successful.

> [!note] CSV Upload Rules:
> 
> - The file must be under **1MB** and have no more than **10,000 rows**.
> - Sessions can only be created for **active participants**.
> - Each `scheduled_time` must be at least **one hour in the future** and fall within the participant’s specific participation period.

### Step-by-Step Instructions

1. **Create your daily survey.** Add your questions, but do not add any triggering logics, and delete the existing default triggering logic. [Save and publish](https://forum.avicennaresearch.com/t/surveys/1286#p-2913-publish-surveys-12) the survey, ignoring any warnings.

2. **[Create a baseline survey](https://forum.avicennaresearch.com/t/how-to-create-a-baseline-survey-in-avicenna/1202/1)** to capture the surgery date for each participant. The survey should contain one [calendar question](https://forum.avicennaresearch.com/t/questions/1291#p-2918-calendar-63) with its `Selector` set to `Date`. You can also add other questions to this survey if needed.

3. **[Create and link a notification template](https://forum.avicennaresearch.com/t/notifications/1277#p-2904-notification-templates-1)** to the baseline survey to get notified whenever a participant submits the baseline survey. This is essential to ensure the timely scheduling of sessions.

4. **Prepare your CSV file for upload.** You can use tools like R, Python, Excel, or Google Sheets. For this example, we will use **Google Sheets**. Open your spreadsheet. Create two sheets. Let’s name the first one `CSV` and the second one `Parameters`.

5. **Define parameters.** In the `Parameters` sheet, set up values for `Participant ID`, `Survey ID`, and `Surgery Date`.

6. **Populate the CSV sheet.** Create three columns: `user_id`, `activity_id`, and `scheduled_time`.

7. **Download the `CSV` sheet.** To do this, go to **File** \> **Download** and choose **Comma Separated Values (.csv)**.

8. **[Upload the CSV file into Avicenna.](https://forum.avicennaresearch.com/t/activity-sessions/1235#p-2862-create-a-session-10)** On the **Activity Sessions** page, click **Create New Sessions** and select **Create via CSV File**.

9. **Review the upload results.** After the upload is processed, a summary dialog will appear. It will show you how many sessions were created successfully and list any that failed, along with the reason for the failure.

## Pro Tips

For simplicity, this guide does not consider participant time zones or daylight saving time. The date/time values will be in UTC when uploaded, and after the upload, you might notice a shift in the time (and probably date). You can define the participant’s timezone or the date range for daylight saving time as new parameters and adjust the formula for the `scheduled_time` column accordingly.

> [!note]Good to Know:
> 
> - Sessions created this way are known as [“researcher-defined” sessions](https://forum.avicennaresearch.com/t/terminology/1288#p-2915-researcher-defined-session-37).
> - A successful upload automatically triggers a [device reload](https://forum.avicennaresearch.com/t/participation/1280#p-2907-reload-devices-8) for the participants you scheduled sessions for.
> - If your study has the [“Capture Reason for Changes”](https://forum.avicennaresearch.com/t/participation/1280#p-2907-capture-reason-for-changes-in-participants-data-16) feature enabled, you will be prompted to enter a reason before the upload is finalized.
