ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Add optional webhook after job finished

Open pawelkania opened this issue 1 year ago • 6 comments

Add optional webhook after job finished, allow to send prompt_id with api request

api params to send:

{
   "prompt": "json - comfyui workflow exported as api format",
   "prompt_id": "uuidv4", # optional - you can use it to reference your db record for job - webhook will contain this uuid
   "webhook_url": "url to send results from comfyui after job is complete",
}

Comfyui will rspond to webhook url with params:

{
  "prompt_id": "uuidv4 you provided during job creation (or autogenerated in comfyui during job creation)",
  "execution_time": 32.7151094869987, # (in seconds)
  "status": "success/error",
  "result": {"outputs": {}} # same format as in history endpoint
}

pawelkania avatar Oct 18 '24 09:10 pawelkania

A very anticipated feature. Is there any plan to merge this feature?

springjk avatar Apr 14 '25 11:04 springjk

A very anticipated feature. Is there any plan to merge this feature?

I stopped waiting and I created custom node to take input and POST it to url you choose - I can share it if you want.

pawelkania avatar Apr 14 '25 11:04 pawelkania

sure, please share it with me. If we have a web hook, we don't have to poll the task status.

springjk avatar Apr 24 '25 09:04 springjk

@pawelkania @springjk I'm interested as well. Would you be so kind to maybe post a link in this thread? 🙏

jlison avatar May 19 '25 18:05 jlison

@springjk @jlison I added this node into https://github.com/2frames/ComfyUI-AQnodes repository - just clone newest version and use AQ_SendImageToAPI node

2frames avatar May 22 '25 07:05 2frames

@2frames thank you so much for sharing 🙏🍻

jlison avatar May 22 '25 19:05 jlison