Data and integration
Answers to common questions about data and integration in the Timefold Platform.
- Do I need all my data ready before I start?
- Does Timefold store my data, or do I send everything each time?
- Should I patch a dataset or send a new one?
- How should I store plans in my own system?
- How should I set up tenants and environments?
- Is there a ready-made integration for my ERP, CRM, or HR system?
Do I need all my data ready before I start?
No. Start with the data you already have, and add more as it becomes available.
Start with the basics: the work to plan, the resources that can do it, and when and where the work happens. Taking this approach also means you will also realize which data should be added next. It will also highlight any data that is missing. The model can already produce useful plans from that.
The model can only apply rules for data you send. For instance, if you don’t send skills yet, the model can’t match skills to work, so it might assign work to someone who can’t do it. Add data such as skills, costs, and preferences one step at a time, and check how each addition changes the plan.
Does Timefold store my data, or do I send everything each time?
Every dataset must contain everything the model needs, because the model only plans from the data in that dataset. For instance, a dataset for replanning includes the current plan, and the rules that apply, such as working-time rules.
There are two ways to provide that data:
-
Send a new dataset: send all the data every time.
-
Patch an existing dataset: send only what changed, for instance an extra visit or an employee who’s unavailable. The platform creates a new dataset from the existing one plus your changes. Patching is in preview.
Timefold Platform stores the datasets you submit, and their results, but only for a limited retention period that depends on your plan. To see your tenant’s retention period, go to Manage tenant → Details. Patching only works while the dataset you patch is still stored. Keep your own systems as the source of truth for your planning data, so you can always build a complete dataset from them.
The configuration profiles you create are stored in your tenant, so you don’t need to send constraint weights with every dataset.
To decide between sending a new dataset and patching, see Should I patch a dataset or send a new one?. For more information, see Handling changes to your planning data and Data retention.
Should I patch a dataset or send a new one?
Patch a dataset for small, targeted changes, and send a new dataset when much of the data has changed.
Patch a dataset when:
-
The change is small, for instance one extra visit, a new shift, or an employee who’s unavailable for an afternoon.
-
You want the model to replan from the existing assignments, to keep changes to the plan small.
-
You want to trace how the plan changed over time, because each patch creates a new dataset linked to the one it came from.
Send a new dataset when:
-
A large part of the data has changed.
-
Your planning period is short and changes are rare.
-
You don’t need to keep the previous assignments.
Either way, include the changes your planners made by hand, and pin them so the model keeps them. If planners make many changes, sending a new dataset built from your own system can be simpler than turning every change into a patch.
Patching is in preview. To get early access, contact us.
For more information, see Handling changes to your planning data and Dataset revisions with /from-patch.
How should I store plans in my own system?
Keep plans at different stages apart, so a new plan never overwrites the plan people are working from. How this is done will depend on your system. One suggestion for how to organize plans is:
-
Draft plans: plans the model returns, which planners can review and change.
-
The active plan: the published plan that people are carrying out. Don’t change it directly. Replan to create a new draft, and publish that instead.
-
Past plans: plans that have been carried out, kept for reporting and analysis.
Move a plan from draft to active only through an explicit publish step in your system, so you control when people see a new plan. Give each plan a status, for instance draft, published, and confirmed, so you can see where every plan is.
To receive plans from Timefold, use webhooks in production, and fetch each plan with its dataset ID when solving completes. Your system then shows the plan to planners and sends it to the people doing the work, for instance as a full schedule, or only the next task in a mobile app.
For more information, see Receiving model API results.
How should I set up tenants and environments?
Use a separate tenant for each environment, for instance one for production, one for testing, and one for development. Each tenant has its own datasets, API keys, webhooks, configuration profiles, and members, so test datasets never mix with production datasets.
On Timefold Cloud, you can group your tenants in an organization. An organization gives each of its tenants a tenant type (Production, Testing, or Development) and applies one plan to all of its tenants. Organization admins set a model release lag per tenant type, for instance to keep the Production tenant one release behind while you validate a new release in the Testing tenant.
If you build Timefold into a product for your own customers, you can use one tenant that all your customers share, or a separate tenant for each customer. The same choice applies to business units or regions.
-
One shared tenant: add configuration profiles for each customer, up to 50 configuration profiles per model. All customers share the tenant’s solve queue and solver threads, and every tenant member sees every customer’s datasets.
-
A tenant for each customer: each customer’s datasets, solve queue, members, API keys, and configuration profiles stay apart. If your organization’s tenant setup includes multiple Production tenants, organization admins add a Production tenant for each new customer themselves, up to the organization’s maximum.
Within one tenant, tag datasets to separate partitions, such as customers, stores, or regions. A webhook can filter on tags to only fire for the datasets of one partition.
For more information, see How the concepts relate, One tenant per end customer or one shared tenant, Manage organization, and Webhooks.
Is there a ready-made integration for my ERP, CRM, or HR system?
There’s no standard connector for ERP, CRM, or HR systems, because every organization configures these systems differently. Even with a standard connector, most of the work would be configuring it for your setup.
If you have specific requirements, contact us.
To integrate your system with the Timefold API:
-
Turn the data in your system into a dataset, for instance work orders into visits or jobs, and employee records into employees.
-
Submit the dataset to the model’s API.
-
Receive the plan, for instance with a webhook.
-
Write the plan back to your system, for instance as a draft that planners review before they publish it.
Your system stays the source of truth for your planning data, as described in Does Timefold store my data, or do I send everything each time?.
You can build the integration yourself, or work with an integration partner. To find a partner, contact us.
For more information, see API integration and Receiving model API results.