# Tutorials

These step-by-step tutorials walk you through common automation scenarios in Model Train Script. Each tutorial starts from scratch and includes screenshots for every step.

If you have questions or suggestions for additional tutorials, feel free to [contact us](/docs/about.md).

## Beginner

* [Shuttle](/docs/manual/automation/tutorials/pendel.md) — Create a script that drives a train back and forth between two points using feedback sensors.
* [RailCom](/docs/manual/automation/tutorials/railcom.md) — Use RailCom to automatically stop any train in front of a red signal.

## Community

Chris made a very nice video tutorial about a simple shuttle use case with Model Train Script. It was recorded with an older version, but the concepts remain the same.

{% embed url="<https://youtu.be/opKaFk_6-RM>" %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://modeltrainscript.gitbook.io/docs/manual/automation/tutorials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
