# Frequently asked questions

## Is it possible to automatically create a ticket after a dialog (trigger to be identified) and to export the whole dialog?

Yes, this is possible through two ways:

* End-of-dialog Triggers: this requires defining the web service and initiating the type of trigger. You can get more information about triggers on this page;
* Calling a web service in a knowledge.

## Is it possible to customize the dialog based on user data?

Yes, this is possible. To do so you can:

* Either define a customer journey via the creation of a decision tree or several trees in the knowledge;
* Either perform a contextual answer through creating conditions in the knowledge.

## Is it possible to retrieve information from a ticketing tool?

Yes. The web service will be requested for a knowledge:

1. Querying a knowledge: "What is the status of ticket 123456? ";
2. You must then capture "123456" in a dedicated variable and use it in a web service solution;
3. Finally, you must indicate the result by performing a callapi.WebService.Result in an answer from the database knowledge.

## How do I authenticate?

To perform authentication, you can:

* Save contextual variables (dydu.chatbox.registerContext (VariableName, ValueVariable) in Javascript, so the person can execute this code by replacing it with the value he wants.
* Perform a SAML 2 authentication whose information about this page can be found.


---

# 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://docs-en.dydu.ai/contents/web-services/frequently-asked-questions.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.
