StrataChat

A StrataBI Platform Module

Powered by Shaleio

Tier: Premium MX · module id stratachat · type multi_page_app (an app StrataBI renders from its own pages) · requires StrataBI, StrataForge

StrataChat builds and edits StrataBI dashboards from plain language, using your own Amazon Bedrock. Generated dashboards are validated against the dashboard schema, checked against your allow-lists, and rendered by StrataBI's own renderer. Conversations and dashboard revisions persist in your S3 bucket.

Review your LLM providers, including Amazon Bedrock, for data flight and sufficient isolation for your organization's needs when implementing AI. Learn more: Data protection in Amazon Bedrock

What you get

TabPurpose
ChatControls on the left (session, model, new session, contexts); the conversation on the right with the message box under it. Type, then press ▷ on Conversation to send. Switching sessions shows that session's history and never re-sends the box's text.
ModelsThe Bedrock chat models this account can use, their status, and Refresh Bedrock models.
WorkspaceThe session's current dashboard, rendered live by StrataBI.
JSONA read-only view of the committed dashboard definition, with Copy — handy for the Builder.

New session starts a fresh conversation; Load context adds installed modules' published context so the model can use them.

Choosing a model. The Bedrock model dropdown lists the chat models this account can use. Press ▷ on Refresh Bedrock models to re-check (it runs in the background — press ▷ on Models a minute later to see the result). Each session remembers its model; the choice is checked on the server on every message, and if a model refuses a request the chat says why and your dashboard is unchanged. Refresh only reads Bedrock's catalog and your model access — it never calls a model or accepts terms.

Speed. The conversation shows your most recent exchanges (20 by default, recent_turns) from a fast DynamoDB window instead of re-reading every message from S3, and the model gets its history from the same read. Full history stays in S3. While a reply is being generated the conversation stays on screen with a small working badge, and your message shows as Working on it….

Your sessions. With StrataBI authentication configured, sessions belong to you and are listed from any browser. Without it they belong to the browser session. A session id is never enough to open someone else's session.

Install and update

bash
stratactl install stratachat
stratactl update  stratachat --to <version>
stratactl uninstall stratachat

Set up Bedrock

StrataChat calls Amazon Bedrock in your account. The install creates the IAM permissions; these one-time steps make a model usable. Do them as an administrator, before the first chat.

1. Pick the model. The default is OpenAI gpt-oss-120b (openai.gpt-oss-120b-1:0), called in your own Region (it has no cross-region profile). Anthropic models work too, through an inference profile such as us.anthropic.claude-sonnet-4-5-20250929-v1:0; a cross-region profile can route a request to any US region in the profile, so if a service control policy restricts regions, allow them. Legacy models (e.g. Claude 3.5 Sonnet v1) are refused for accounts that haven't used them recently.

2. Submit the Anthropic use case details (Anthropic models only, once per account). In the Bedrock console open Model catalog, choose the Claude model and submit the form. In an AWS Organization, a submission from the management account covers its member accounts. Access is usually granted within minutes.

3. Enable the model once, as an admin. Bedrock enables a model for the account on its first invocation, and that first call needs AWS Marketplace permissions (aws-marketplace:Subscribe, aws-marketplace:Unsubscribe, aws-marketplace:ViewSubscriptions). StrataChat's role deliberately has none, so make the first call yourself with an admin profile. Send one message in the Bedrock console's chat playground, or:

bash
aws bedrock-runtime converse --region us-east-1 \
  --model-id openai.gpt-oss-120b-1:0 \
  --messages '[{"role":"user","content":[{"text":"hello"}]}]'

Setup can take up to 15 minutes. After that, every role with bedrock:InvokeModel (including StrataChat's) can use the model. Repeat this step for any other model you want in the dropdown.

4. Check it in StrataChat. On Models, press ▷ on Refresh Bedrock models, then Refresh a minute later: the model should be listed as usable. On Chat, start a new session and send "hello".

Use a different model. Set bedrock_model_id to a Converse-capable model or inference profile id (see Module settings) and run stratactl update stratachat. Users can also pick any usable model per session from the Bedrock model dropdown.

Settings

SettingDefaultMeaning
bedrock_model_idopenai.gpt-oss-120b-1:0Default model (preselected for new sessions); any Converse-capable model or inference profile id.
allowed_lambda_modulesnoneModules generated dashboards may reference.
allowed_workgroupsprimaryAthena workgroups generated dashboards may use.
allowed_cache_prefixesnoneS3 cache prefixes generated tiles may read.
max_tiles30Maximum tiles per generated dashboard.
owner_modeactorSession ownership: the signed-in user (per browser session without auth), session, or event.
model_refresh_usersanyoneWho may refresh the Bedrock model list.
recent_turns20Exchanges shown in the conversation and sent as history (full history stays in S3).

Settings live at config/stratachat.auto.tfvars.json in your StrataCI bucket; change them and run stratactl update stratachat (how).

AWS services

Everything below runs in your AWS account. It is created by the install unless noted.

ServiceUsed forRequired
Amazon S3Durable per-session chat/dashboard storage + Tab-2 render pointers.Yes
AWS LambdaSession mgmt, context, chat engine, dashboard ops, artifacts, history.Yes
Amazon BedrockConverse inference for dashboard generation.Yes
Amazon DynamoDBDiscover installed modules + their llm_context.txt; the module's Bedrock model registry table.Yes
AWS IAMOne scoped role per function.Yes
Amazon CloudWatch LogsRuntime logs.Yes

It also uses pieces of your existing StrataBI install: the system S3 bucket, the module registry (DynamoDB) and, for tile results, the <name_prefix>-status-writer Lambda.

How it works

On ▷, chat_engine sends a bounded Bedrock Converse prompt (system rules, the dashboard schema contract, recent history, selected module contexts and the current dashboard). If the reply contains a dashboard change, it is applied as small edit operations, validated against the published schema and your allow-lists, and committed as an immutable revision; invalid output is repaired or rejected, never committed. Long conversations are summarized to stay within budget.

Session state lives under stratachat/sessions/<session_id>/ (durable across refreshes); the Workspace tab reads a per-session render pointer through StrataBI's session-dashboard seam.

LambdaDoes
chat_engineThe conversation turn (the only role that can call Bedrock).
session_manager / session_historySessions and transcripts.
context_loader / context_registryModule contexts.
dashboard_manager / artifact_managerRevisions and session data.

Troubleshooting

AI generation (Bedrock) · StrataMCP · Modules