golem-wait-for-external-input-ts

Suspend TypeScript agent execution until an external promise is fulfilled.

1|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/justcoon/golem-shopping-ts --skill golem-wait-for-external-input-ts
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: golem-wait-for-external-input-ts
Source: https://github.com/justcoon/golem-shopping-ts/tree/main/.agents/skills/golem-wait-for-external-input-ts
Command: npx skills add https://github.com/justcoon/golem-shopping-ts --skill golem-wait-for-external-input-ts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Facilitates suspending an agent's execution until an external event completes, enabling human-in-the-loop workflows, webhook callbacks, and inter-agent synchronization.

Core Features & Use Cases

  • External Event Waiting: Create promises and await their completion to pause agent processes.
  • Human-in-the-Loop: Enable workflows to pause for human approval or input before proceeding.
  • Inter-Agent Coordination: Share promise IDs across agents to synchronize actions based on external triggers or signals.

Quick Start

Use this Skill to implement a workflow that waits for an external approval before continuing, by creating a promise, passing its ID externally, and awaiting its fulfillment.

Frequently Asked Questions about golem-wait-for-external-input-ts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pause a TypeScript agent workflow until an external event occurs?▼

To pause a TypeScript agent workflow until an external event occurs, you can use this Skill to create a promise, pass its ID to the external system, and await its fulfillment to suspend execution securely.

Can I implement human-in-the-loop approval workflows in TypeScript using promises?▼

Yes, you can implement human-in-the-loop approval workflows by creating a promise and awaiting its completion, which pauses the agent process until the required external human input or approval is received.

What is the best way to coordinate inter-agent synchronization with external signals in TypeScript?▼

The best way to coordinate inter-agent synchronization is by sharing promise IDs across agents, allowing them to pause and resume actions based on external triggers or signals using Golem's promise API.

How do I wait for a webhook callback in an asynchronous TypeScript agent?▼

To wait for a webhook callback in an asynchronous TypeScript agent, create a promise, expose its ID to the webhook source, and suspend the agent's execution until the webhook fulfills the promise.

Does Golem support suspending agent execution for external data arrival?▼

Yes, Golem supports suspending agent execution for external data arrival by using its promise API to pause the workflow and resume securely once the external system completes the awaited event.