> For the complete documentation index, see [llms.txt](https://docs.lamsfoundation.org/lams/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lamsfoundation.org/lams/tools/optionals.md).

# Optionals

An Optional activity allows you to cater for choices that might better suit your students.

### Why do I need to give optional activities to students?

As you might have seen so far, LAMS allows you to create sequences of learning activities. But at times, you might want to have choices or options to perform the same activity but using a different modality.&#x20;

For instance, say you want your students to discuss a particular topic. But you aren't sure if the students can have a synchronous or asynchronous discussion.&#x20;

In this case, you can use an optional and add two activities into it: a Forum, in case the discussion will be conducted asynchronously, or a Chat if the discussion is to happen synchronously.&#x20;

Here's how you will do add an option with a Forum and Chat and allow students to select one or the other:

![Adding an optional with a forum and a chat activities. ](https://2715438169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUWqD_T8RMCVWrMoBH_%2Fuploads%2FcCMuHfepclWQTxugHhLA%2Fauthoring-optional-activities.gif?alt=media\&token=7f3c8735-66cc-40ca-aed6-6ef8d4a78dd1)

### Student's view

Once the students get to the optional activity, then they will be able to pick which discussion activity to use:

![Student view](https://2715438169-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUWqD_T8RMCVWrMoBH_%2Fuploads%2F5h4E5HHPNa2jTLwWuSh1%2Flearner-optional-activities.png?alt=media\&token=88ab9392-1f8c-42c0-b835-3cf157aa424b)

On selection of one, then the student will be routed to the choosen tool to conduct the learning activity.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lamsfoundation.org/lams/tools/optionals.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
