> ## Documentation Index
> Fetch the complete documentation index at: https://docs-classic.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tasks

[Updated in 4.100](https://docs-classic.cognigy.com/release-notes/4.100.md)

*Tasks* let you monitor when specific events occur in a Flow.

To track tasks in a Flow, use a [Complete Task](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/analytics/complete-task.md) Node.

Once the Node is triggered,
the task is recorded in the Analytics database and can be monitored in the [Contact Profile](https://docs-classic.cognigy.com/ai/agents/analyze/contact-profiles.md),
viewed in Insights [reports](https://docs-classic.cognigy.com/insights/reports/overview.md) and [explorers](https://docs-classic.cognigy.com/insights/explorers/conversations.md#session-transcript-details), and accessed through the [OData endpoint](https://docs-classic.cognigy.com/ai/agents/analyze/odata.md) for further analysis.

For more information, read the [Complete Task Node](https://docs-classic.cognigy.com/ai/agents/develop/node-reference/analytics/complete-task.md) article.

## Compatibility Alias to `profile.tasks`

In the [Profile](https://docs-classic.cognigy.com/ai/agents/develop/ai-agent-memory/profile.md) object, `profile.goals` has been renamed to `profile.tasks`.
To ensure your existing code still works in Flows, `profile.goals` now functions as a compatibility alias that points to `profile.tasks`. This means you can still use `profile.goals`. Its value is stored in the `profile.tasks` object. Accessing `profile.goals` provides the value from `profile.tasks`, for example:

* When using the `{{ profile.goals }}` or `{{ cp.goals }}` CognigyScript expressions.
* In Code Nodes, Extension Nodes, and Functions.

The `profile.goals` alias is available for existing implementations to maintain continuity. However, for new Flows, use the new `profile.tasks` naming convention in your CognigyScript expressions and code. This approach ensures that your Flows comply with the latest platform standards and best practices.

### Restrictions of the Alias

This compatibility alias for `profile.goals` isn't a standard property of the Profile object.
This alias limits how you can use or inspect it:

* **Property Listing** – `profile.goals` doesn't appear when you list the object's properties, for example, when using `Object.keys(profile)`.
* **JSON Serialization** – `profile.goals` doesn't appear when you turn the Profile object into JSON, for example, when using `JSON.stringify(profile)`.

## More Information

* [Goals](https://docs-classic.cognigy.com/ai/agents/analyze/goals-and-tasks/goals.md)
* [Overview](https://docs-classic.cognigy.com/ai/agents/analyze/goals-and-tasks/overview)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.