# Asistente inteligente

El asistente inteligente es una herramienta intelectual diseñada para proporcionar automáticamente al Usuario las funciones necesarias en el ámbito de la programación y/o expresiones regulares basándose en una descripción en forma de texto.

Los asistentes inteligentes vienen en varios tipos:

* en el editor de expresiones,
* en el generador de expresiones regulares,
* para la generación de código en editores de código.

1. **Asistente inteligente en el editor de expresiones**

Abra el proyecto en Sherpa Designer, agregue a la diagrama el bloque “Ejecutar expresión PowerShell”:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdI9qskEdkLySKnURS0vP3CGHG6fP-qzxccsfLA1-mTpSpFrKyWlCNJsG-cghlkiyYt55DHBG-LscLDocNxIRBbASd6u8FSXVPrxpv7qQ3EasVTFvkh65MzLlyRJL8ikJAo-fh7aA?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

Haga clic en el botón ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdksQpwA-iFd0v3LOGpWkwQhjqWWYXgyAMM0TkmaMYNfOKduJX5a3nvW4R9V1_akxL5CW1ekr6tqgf3ltkMx5A7PNmVUikmQOiyWV5TVgmyX3lZ8daAdnZDna1gUnBWDi194rzB?key=2frHalbXRpccMssNXygBgA) a la derecha de cualquier campo “Expresión …” en el “Panel de propiedades”:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcVu-cvYsu5UY56iny5KiYT4fXUKmLOLmZbCQAyymD-ouUqoPMqtoISOoZoeYUCqWfa7R_twHGx9woowyzUYOAFUihEmCUGwvnunmeE3CuNoJemtQ2v5Bt-iGBqBwenzTq8x7Yr?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

En la ventana emergente “... Editar expresión” haga clic en la pestaña “Asistente inteligente”:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfbAb18neS-fMFeibt8LPR2nlamVDvxhwYYgaM9zbEO-5egPWQVgJUc-hiU8tgcIPX1jjMPq2ydg6t1hsvxizkysxDnJcVsnnCeB-oHp88wfCubPBoM0PT7YXl4PX7jrI2W7Z78Sg?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

Ingrese la descripción textual de la expresión en el campo “Su consulta”:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeIZFxtHm7ulGI3Zi2aTrtmIDhYeNCHkXDvRXWsh5iorfIDmk-4KCjF6XwdQUbM4LajPDUVY_w_pTALcbtk392k-uDwEglQ0Q7R0jPMPj1Oa9ZnGIOlgWMRyb39RjkGtYpTSxPAkQ?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

Haga clic en el botón “Enviar” y el asistente inteligente sugerirá la expresión necesaria:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXekF7C3ivsXA8Zdh7bbUotVHVIZBO8my2IMWH-xb7_9IYh_EBmxhAXQlu1RYM8tZ20FoZe9codTNastvzHvXsNjWh8tYVYQaKEWVyowtLC1cJDrDKj0dHg9xdVTSBEyz4IGVrbpwg?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

Luego copie la expresión y colóquela en el campo correspondiente en “Propiedades principales”.

2. **Asistente inteligente en Sherpa Regex**

Abra el proyecto en Sherpa Designer, busque el ícono “Abrir Sherpa Regex” en el menú “Avanzado”: ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdKlKM3iYtFJyZghKcupbkACpbqbJX9Sehs9xwfLhOfQyvD-WoVafBpK9SYmI4J_aOvdteFgzn131mo4uce5_XmaS79QgRTEpfAo-P_kk0oIoNJr6MIY9ntn3VLHL1h5mHey3gLyg?key=2frHalbXRpccMssNXygBgA) , y haga doble clic en él con el botón izquierdo del ratón.

En la ventana emergente “Prueba de Regex …” ingrese la descripción textual de la expresión en el campo “CONSULTA”:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf_H2vo4_DQWVL7zP6mma_dTHyFtchyeSz1lx4cCqFRFGIFrn2389I2czPDMvJ1jh9jaND27JlmSx3rGWGBmPfKat705S51dCWVjG21W6A-NYzDMWG1mVJYpfXlWzAsY9gwnx-wKQ?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

Luego haga clic en el botón “Enviar”. En el campo “TEMPLATE” aparecerá la expresión necesaria:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXev_5Fh5b9_vixsADYWm2w43jf5mfsfyvh_yzDdWNCiUTZo2BgZ0PRNdC-Z7i55BqSCUaN_KQSsSDSP4jhiyOzKNrao8Ccp8MR4g5qknXx1kR22553Y483XfdLZ77SGdNI5XJ8xsQ?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

Copie la expresión y colóquela en el campo correspondiente en la pestaña “Prueba”.

3. **Asistente inteligente para la generación de código en editores de código**

Abra el proyecto en Sherpa Designer, agregue a la diagrama uno de los bloques:

* “Ejecutar código C#”:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeIsWJYLYBwKcF7-3q2DjbxLsmiZkQBmQu8smL6iLrU_ugofhgpRsJEalUQqRWVmNmCykKAtLThsgMeodz91F4mPNZbKTY9xG2PBL6Abb3-qM52s6XJo0saB0ZLrYs58DlIiZJ1YQ?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

* “Ejecutar código Python”:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdCO2Fgw2bD2RYMlmHRe7YBhQWBnr6t5DUXeNl7yU1pv4CBBo3txN6RiPXnO9ebeWNmhw2srM0s6kJn1t9U_lHAI-FMuzsu9_wMA17i6Kz1UKNij1S6rY00AUvCOYPD1Wy342f0?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

* “Ejecutar código Java“:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfP37eKtWlshVDQG7vSBMcNIKm0Om1Kv22If3RxTdnOIo84yU2-xqsPDjN1dthZ01l0Nu7gVXhIMKloRtv_fRCTc_1S0Ig2EKOy-TtOlW0nnWQssi6kPL6SJlXYdx0IxdWzxZbNzg?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

* “Ejecutar código VB”

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe0zeCTb5dHEihzwHJkB-UUNLp_YrcJNvSu40vVJvUSZivt_E3V_k33qjuWhnHF9h4kSEUv7vyxxK6IUUbTnwXeuzC6wOZVNAzyyTinw_cXmZlgYfUrYmXIghiWV9uFX1WX81XpJQ?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

Haga clic en el botón ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXdX4zmRB2KZY-mq4PvUy9tFQOPdqQpJRuXr3Jgx49tGYabogWLO_7B33U4O_hHpuUd2zdc12MgQGDh4maRWgSJ0tpOivkz_LWk5YYsfuvrszIDXPTr6ydKN8hcTbLgYkXkBsogaHw?key=2frHalbXRpccMssNXygBgA) dentro del bloque. En la ventana “Editor … de código” haga clic en el botón ![](https://lh7-rt.googleusercontent.com/docsz/AD_4nXc5TFTf4hdXOzzu4DQz0zwzfRpzflms5dP0rMx3A5iJ6xZpd6oYSEaji1ftPIiHU30BnsuEQSKhOXx15tQQbL1BkoZbqyBP0_mEmbQgP0p0P90Wa-Io5n1Q74pcyBU0sPvrcWiE1A?key=2frHalbXRpccMssNXygBgA).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeOrP5uoeUqKaeroG3DCDcNMd6Vode5nO9pfk9ngOgmbojffZwik6o2hTOENnO6Okp2LuNYNG2tbnqVI2lm_bS5O9ohBpEWa7CGIo75l66N-khmmLTnMW5NMarOMkHNFRXK3qIrDQ?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

En la ventana emergente “Asistente inteligente” ingrese la descripción textual del código en el campo “Consulta actual”:

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf7IZAswcMuoIw1ykCLG2K3OhVMbwM-h9LtCOUyWswoUnlLFUQg8wwWlVTlJZqs4TI7Nh2XDo4uv53EdUuf55fkGO4ZmhjLz8PMJCTEU1XsvjwJnAmF1MsqJAOHMfxnCluIDh11?key=2frHalbXRpccMssNXygBgA" alt=""><figcaption></figcaption></figure>

Haga clic en el botón “Generar código”. En la ventana “Editor … de código” aparecerá el código en el lenguaje de programación necesario.


---

# 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.sherparpa.ru/es/sherpa-rpa/sherpa-designer/umnyi-pomoshnik.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.
