## Documentation Index

Fetch the complete documentation index at: [/llms.txt](https://docs.cognigy.com/llms.txt)

Use this file to discover all available pages before exploring further.

These are functions that don’t belong to any specific group. They let you evaluate conditions, mark conversation goals as complete, and extract data from user input using regex.

## [`evaluateRule`](https://docs.cognigy.com/ai/for-developers/function-reference/other/evaluateRule)

**Syntax** `evaluateRule(rule)` Evaluates a condition based on a rule configuration that follows the `left`, `operator`, `right` pattern. This function works similarly to the If Node.

## [`completeGoal`](https://docs.cognigy.com/ai/for-developers/function-reference/other/completeGoal)

**Syntax** `completeGoal(goal)` Marks a goal as `completed` for the conversation.

## [`setRegexSlot`](https://docs.cognigy.com/ai/for-developers/function-reference/other/setRegexSlot)

**Syntax** `setRegexSlot(params)` Extracts Slots from user inputs using a regular expression and writes them to `input.slots`. This function is used by the [Regex Slot Filler](https://docs.cognigy.com/ai/agents/develop/node-reference/ai/regex-slot-filler) Node.

Last modified on April 21, 2026.
