How to add personalization to Background Tasks?

Answered

Let's say I have 10 customers. And I want to send each one a personalized digest at 9 am every day.

My initial thought was to use Background Tasks for this job.

But I discovered 2 things:

  • I can't personalize the inputs (only if I create 1 task for every customer)

  • I can't create background tasks from API (I need to do it manually?)

What will be the best workaround? Or am I missing something?

I can imagine creating an API call with an eternal loop to send it. But it sounds terrible, to be honest.

Appreciate your ideas!

2 replies