Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

hide voice emb on prod

Ahmed Essam06c296d4a743
diff --git a/packages/app/src/builder-ui/pages/builder/agent-settings.ts b/packages/app/src/builder-ui/pages/builder/agent-settings.ts
index 106ccabc..97561542 100644
--- a/packages/app/src/builder-ui/pages/builder/agent-settings.ts
+++ b/packages/app/src/builder-ui/pages/builder/agent-settings.ts
@@ -987,7 +987,7 @@ export async function openAlexaEmbodiment() {
</button>`;
const content = wrapContent(`<div class="emb-instructions p-4 flex-row">
- <div>
+ <div id="talk-to-agent-wrapper">
<div class="flex items-center justify-between">
<label class="block text-sm font-medium text-gray-700 mb-1">Talk to Agent</label>
<a href="${voiceUrl}" target="_blank" rel="noopener noreferrer">
@@ -1107,7 +1107,17 @@ export async function openAlexaEmbodiment() {
actions,
EMBODIMENT_DESCRIPTIONS.alexa.title,
EMBODIMENT_DESCRIPTIONS.alexa.tooltipTitle,
- );
+ ).then(() => {
+ console.log('openEmbodimentDialog');
+ const talkToAgentWrapper = document.querySelector(
+ '#alexa-embodiment-wrapper #talk-to-agent-wrapper',
+ );
+ const isProd = window.location.hostname.includes('smythos.com');
+
+ if (talkToAgentWrapper && isProd) {
+ talkToAgentWrapper.classList.add('hidden');
+ }
+ });
// on prod domain change, update the url
builderStore.subscribe(