Sync people.ai job status on schedule

Recipe ToolsDeveloper ToolAPI Integration

What it does

When a scheduled interval arrives, this automation sends HTTP requests to people.ai to retrieve a job token and ID. It then polls the job status repeatedly until the state reaches Completed, and logs the final result.

Who it's for

Data and analytics teams who need to monitor people.ai jobs without manual checks.

How teams use this

Monitor a daily people.ai sync

Run the job status check every morning at 6 AM so the team knows when people.ai data is ready. The automation handles all polling and logs the final state.

Alert when a job fails

Add a Slack notification step after the polling loop so someone is notified if the job state never reaches Completed. The rest of the flow stays the same.

Run sync on demand from a webhook

Replace the Clock trigger with a webhook so an external system can start the people.ai job check whenever needed. Set up the webhook to pass the job parameters and all polling checks remain unchanged.

How it works

  1. Start on a specified interval. At the scheduled time, this automation starts and initiates the first HTTP request to people.ai via Rest.
  2. Retrieve token via HTTP POST. Send a POST request to people.ai via Rest to retrieve the authentication token required for subsequent HTTP calls.
  3. Retrieve job ID via HTTP POST. Send a POST request with the token to people.ai via Rest to create or retrieve the job ID for status tracking.
  4. Poll job status until Completed. Send HTTP requests to people.ai via Rest to check the job state, wait between polls, and repeat until the state equals Completed or max retries are reached.