An agency using the Agents SDK can require human review for an application tool. For a campaign, show the draft’s account, assets and budget before submitting a request to publish in a paused state.
Step by step
- Show the version, budget and account for approval.
- Resume the run state corresponding to the recorded decision.
- Read the created campaign back and verify its paused status.
- In a test environment, change the budget while the run is waiting for approval. The earlier decision should remain tied to the old summary. If resuming still executes the new version, fix the interruption, version and decision mapping before connecting a live account.
Put the NoBreakAds MCP to work
Give the approver the summary and revision of the Meta draft created through NoBreakAds MCP. After publication is authorized, check progress and record the IDs and paused status. Route activation to a separate admin confirmation. See client account operations · Create an account.
Related guide: Review paused campaigns before authorizing activation
Save the interrupted run state
In the Python SDK, tools marked needs_approval can raise interruptions. The application obtains the run state, presents the decision to the reviewer and resumes after approving or rejecting that interruption. Bind the decision record to the displayed version. OpenAI Agents SDK · Human-in-the-loop
Read back the publication result
If the budget changes during review, present the new version. After publishing, verify object IDs and paused status in the product. In the NoBreakAds creation flow, activation requires a separate administrator confirmation. End the task once the requested paused publication is verified.
Test resuming after the draft changes
In a dry run, version 4 of campaign C17 awaits approval at $50 per day. Save version 5 with a different audience, then attempt to use the version 4 approval in the test flow. Version 5 should stay pending. If it advances, fix how the interruption is bound to the account, campaign and version.
Illustrative scenario
Suppose a coordinator approves 50 a day. Minutes later, the buyer changes the draft to 100 a day. The team goes back to the coordinator for approval of the new amount before publishing the campaign in a paused state.
Frequently asked questions
How can we avoid resuming the wrong client’s approval?
Bind the interruption ID to the account, run and version the reviewer approved. Check all three on resume.
What if the publication UI times out?
Check operation status and existing objects before considering another execution.