What it does
If your customers subscribe to meal plans through a diet app, AimHub can bring their deliveries in for you. Every day, at a time you choose, AimHub asks the app for tomorrow's deliveries and hands them to the kitchen that cooks them. Nobody has to export or retype spreadsheets.
Each delivery arrives with the customer, their allergies and dislikes, the delivery window and area, and every meal with its portion. AimHub then builds the kitchen's production plan and flags any meal that clashes with what the customer can't or won't eat.
Changes don't wait for the next pull. When a subscriber pauses, resumes, swaps a meal or changes address, the app tells AimHub straight away and the kitchen's plan updates.
Before you start
Your diet app provider installs the AimHub connector in their app once. With it, the app can:
- list every delivery for a date, with its status: active, paused, skipped or cancelled;
- give each meal the same code (SKU) as the matching item on your AimHub menu, with its meal type (breakfast, lunch, dinner or snack), portion, quantity, calories, macros and allergens;
- send customers' allergies using the same allergen names as your AimHub menu;
- tell AimHub about pauses, resumes, swaps and address changes as they happen.
Connecting the app
- Go to Settings → Diet apps and click Connect a diet app.
- Pick the Brand and the Kitchen that cooks it.
- Under Source, choose Diet app API.
- Enter the app's Base URL (its web address, from your provider) and an API token. Make the token a long random value and give the same token to your provider.
- Set Pull tomorrow's deliveries at (kitchen time), for example 18:00.
- Click Connect.
- On the next screen, copy the address and the Secret under Webhook for changes and send them to your provider. This is how the app reports changes.
- Click Test connection. AimHub tells you how many deliveries the app has for tomorrow.
Pulling deliveries by hand
On the connection's page, pick a Date and click Pull now. AimHub fetches that day's deliveries and rebuilds the production plan. Use it after fixing a problem, or to load a day early.
Checking that it works
The Diet apps list shows each connection's Pulls at time and its Last pull: how many deliveries came in and when, Never, or Failed. Click Edit to see why a pull failed.
The Production screen also lists the diet apps feeding each kitchen and when each one last pulled.
Who can use it
People who manage settings (the Owner role) can connect, change and disconnect diet apps. Diet apps are part of subscription production, included in the Growth and Enterprise plans.
Good to know
- A connection links one brand to one kitchen. If a brand cooks in two kitchens, add a connection for each.
- If a scheduled pull fails, AimHub keeps trying again every few minutes until it works.
- A delivery that disappears from a later pull of the same date is treated as cancelled.
- Changes that arrive after the kitchen's cut-off still update the plan. They show in red on Production so the kitchen notices.
- Rotate secret issues a new secret. Your provider must update the app with it, or its changes will be refused. Rotate it when someone who knew it leaves.
- Disconnect also removes the deliveries AimHub stored for that app.
- To try things out without a real app, choose Demo data as the source.