Michael_Hwang | 2023-04-24 20:11:05 UTC | #1
We would like to implement a service that can track when any user prompts have been changed for auditing and to send notifications to specific users.
The only notification topics that I see for prompts require individual IDs: v2.architect.prompts.{id} v2.architect.prompts.{id}.resources.{id}
This would require several hundred individual topic subscriptions. Is there any way to watch ALL user prompts for any changes without specifying IDs?
Jerome.Saint-Marc | 2023-04-25 15:04:59 UTC | #2
Hello,
The topics you are interested in appear to be available via Event Bridge.
When using the Amazon EventBridge integration, you just need to specify the topics you are interested in - specifying the ids is not necessary (I mean no individual subscription to made for each prompt/conversation/user/...). About the Amazon EventBridge integration
Regards,
Michael_Hwang | 2023-04-25 15:47:04 UTC | #3
Thank you Jerome. We were hoping for a fairly basic solution using WebSockets instead of integrating with EventBridge. The user prompt changes/edits are expected to be somewhat rare but supervisors would like to be aware if anyone makes any updates. The challenge is that there are about 1,000 prompts and 2 language resources in each. Ideally, we were hoping for some kind of callback mechanism indicating that a prompt was created/modified/deleted with the ID of the affected object. We could then do a lookup using the Architect API to fetch the details of the prompt and its resources.
Jerome.Saint-Marc | 2023-04-25 15:56:40 UTC | #4
Unfortunately, at this time, Event Bridge is the only option working as a "notification" and not requiring to specify all ids.
system | 2023-05-26 15:56:35 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 19610