> For the complete documentation index, see [llms.txt](https://patterns.opendialog.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://patterns.opendialog.ai/the-pattern-library/authentication/example-dialog.md).

# Example Dialog

User is in the hotel lobby, not their hotel room, and wants to order room service. User talks to a kiosk voice bot. User not authenticated.

`[User launches the bot]`

*`Bot: Welcome to Hotel OpenDialog. How can I help you today?`*

`User: I’d like to have a bottle of Dom Perignon brought to our room at around 10pm this evening. Is that possible?`

*`Bot: I can have room service bring you a bottle of Dom Perignon at 10pm this evening. Is that what you’d like?`*

`User: Yes.`

*`Bot: Before completing this change, I’ll need to verify your information. What room are you in?`*

`User: Room 406.`

*`Bot: Room 406. And to confirm who you are, what is your credit card number?`*

`User: 1234 1234 1234 1234`

*`Bot: Thank you, Jason. You will receive your room service at 10pm tonight.`*

`User: Thank you.`

In the above interaction, the user is making a request for room service from a location where they are not authenticated. Purchasing room service is an authentication trigger. Once the user intent is confirmed, the bot collects user information conversationally. In this case, instead of a username and password, the bot asks for the user’s room number and credit card number. The bot can compare the credit card number on file for room 406 and confirm that they match, thus accomplishing the authentication. Once authenticated, the transaction (a room service request) can be completed.


---

# 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 dynamically by asking a question.

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

```
GET https://patterns.opendialog.ai/the-pattern-library/authentication/example-dialog.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
