{% extends "base.html" %} {% block content %}
Connected Systems Studio now supports saved connections, secure credential separation, connection testing, natural-language queries, and request traces.
Use the selected connection to ask high-level questions and inspect the exact SQL, REST request, or ESQL QD generated.
No saved connections yet.
{% endif %} {% if selected_connection_id %} {% endif %}Name: {{ selected_connection.name }}
Type: {{ selected_connection.system_type }}
Auth: {{ selected_connection.auth_type }}
Target: {{ selected_connection.base_url or selected_connection.resource_path or "n/a" }}
OpenAPI Spec: {{ selected_connection.openapi_spec_url or "n/a" }}
Org: {{ selected_connection.org_id or "n/a" }}
Has credentials: {{ "yes" if selected_connection.has_credentials else "no" }}
Credential Backend: {{ selected_connection.credential_backend or "none" }}
Sharing: {{ selected_connection.sharing_scope }}
Manage Access: {{ "owner/publisher" if can_manage_selected else "read-only" }}
{% if health_summary %}Health: {{ health_summary.status }}
Retry Recommended: {{ "yes" if health_summary.retry_recommended else "no" }}
{% endif %} {% else %}Select a saved connection to inspect it.
{% endif %}Intent: {{ interpreted_setup.interpreted_intent }}
Name: {{ interpreted_setup.draft.name }}
Type: {{ interpreted_setup.draft.system_type }}
Base URL: {{ interpreted_setup.draft.base_url or "n/a" }}
Path: {{ interpreted_setup.draft.resource_path or "n/a" }}
Default Index: {{ interpreted_setup.draft.default_index or "n/a" }}
Auth: {{ interpreted_setup.credential_summary.auth_type }}
Username: {{ interpreted_setup.credential_summary.username or "n/a" }}
Password detected: {{ "yes" if interpreted_setup.credential_summary.has_password else "no" }}
Token detected: {{ "yes" if interpreted_setup.credential_summary.has_token else "no" }}
API key detected: {{ "yes" if interpreted_setup.credential_summary.has_api_key else "no" }}
This mode is designed for demo-style setup. Parsed drafts are not persisted until you click Save Connection below.
{% endif %}Status: {{ health_summary.status }}
Last Test: {{ health_summary.last_test_at or "never" }}
Retry Recommended: {{ "yes" if health_summary.retry_recommended else "no" }}
No health information is available for the selected connection yet.
{% endif %}{{ recipe.description }}
{{ recipe.question }}
{% if recipe.source == "saved" and recipe.can_manage %}
| Index | Health | Status | Docs | Store Size |
|---|---|---|---|---|
| {{ item.index }} | {{ item.health or "n/a" }} | {{ item.status or "n/a" }} | {{ item.docs_count or "n/a" }} | {{ item.store_size or "n/a" }} |
Use index discovery to inspect the cluster before asking higher-level operational questions.
{% endif %}{{ query_result.answer }}
{% if query_result.result %}{{ query_result.result | tojson(indent=2) }}
Run a question to see a human-readable answer here.
{% endif %}Intent: {{ query_result.trace.intent }}
Planner: {{ query_result.trace.planner_source }}
Tool: {{ query_result.trace.tool_name }}
Execution: {{ query_result.trace.execution_ms }} ms
{% if query_result.trace.operation_name %}Operation: {{ query_result.trace.operation_name }}
{% endif %} {% if query_result.trace.method %}Method: {{ query_result.trace.method }}
{% endif %} {% if query_result.trace.url %}URL: {{ query_result.trace.url }}
{% endif %} {% if query_result.trace.sql %}SQL
{{ query_result.trace.sql }}
{% endif %}
{% if query_result.trace.esql %}
ESQL
{{ query_result.trace.esql }}
{% endif %}
{% if query_result.trace.request_body %}
Request Body
{{ query_result.trace.request_body | tojson(indent=2) }}
{% endif %}
{% if query_result.trace.query_params %}
Query Params
{{ query_result.trace.query_params | tojson(indent=2) }}
{% endif %}
{% if query_result.trace.response_preview %}
Response Preview
{{ query_result.trace.response_preview | tojson(indent=2) }}
{% endif %}
{% else %}
The trace panel will show the generated request and result preview after you run a query.
{% endif %}No query history yet for this connection.
{% endif %}{{ item.detail | tojson(indent=2) }}
No audit events yet for this connection.
{% endif %}Select or save a connection first.
The query workspace uses the active saved connection and keeps the generated request trace visible for demos.
{% endif %}| Name | Scope | Queries | Recipes | Failures | Last Query |
|---|---|---|---|---|---|
| {{ item.name }} | {{ item.sharing_scope }} | {{ item.query_count }} | {{ item.recipe_count }} | {{ item.failed_query_count }} | {{ item.last_query_at or "never" }} |
Rotate or replace the stored credentials for the selected connection without changing the rest of its metadata. The secret stays in the configured backend and is never rendered back after save.
{% else %}Select a saved connection before rotating or clearing credentials.
{% endif %}{{ test_result | tojson(indent=2) }}
{% else %}
Run Test Connection to validate the current draft or selected saved connection.
{% endif %}