Assistant Subscriptions

Modified on Tue, 06 Sep 2022 at 05:01 AM

Part of an assistant configuration is the ‘Reactive’ options where you point to one or more stores (e.g. Processing Store, Training Store) so that the assistant will monitor the store and become active when new data become present in the store(s).


Subscriptions uses a simple expression language to match documents. You can learn all the types of expressions here.



We also have a set of helpers for working with our events.


hasLabel

You can use hasLabel to determine if the document that raised the event has a specific label

hasLabel('model-applied')
You can invert it using a !, for example
!hasLabel('model-applied')



hasMixins

You can use hasMixins to determine if the document that raised the event has a specific mixins

hasMixins('spatial') 



hasExtensions

You can use hasExtensions to determine if the document that raised the event has one or more extensions

hasExtensions('pdf','doc') 



matchesPath

You can use matchesPath to perform a pattern match on the document name

 matchesPath('.*\.pdf')

If blank are defined then all events are sent to the assistant

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article