Is there a way to trigger the custom skill only if a certain metadata field?

enaida 20 Reputation points
2025-04-15T17:48:58.6966667+00:00

Hi, I’m building an enrichment pipeline using Azure Cognitive Search with a custom skill attached. Is there a way to trigger the custom skill only if a certain metadata field (like isSensitive == true) exists in the input?

I tried playing around with inputs and conditionals but couldn’t get it to skip execution cleanly. Any tips or examples would be appreciated!

Azure AI Custom Vision
Azure AI Custom Vision
An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.
284 questions
{count} votes

Accepted answer
  1. Azar 28,155 Reputation points MVP
    2025-04-15T19:07:47.7433333+00:00

    Hi there enaida

    thanks for using QandA platform

    TTYes, you can conditionally run a custom skill using the inputsCondition property. Just add something like "inputsCondition": "/document/isSensitive == true" in your skill definition. This ensures the skill only runs when that field is true. Make sure isSensitive is properly mapped and exists in the input. Super useful for skipping unnecessary processing!

    If this helps kindly acccpt the answr thanks much.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. enaida 20 Reputation points
    2025-04-15T17:58:43.72+00:00

    hi anyone up?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.