Visibility API

Contol when the agent shows up, closed or removed as well as it's view type

Every call must reference your Agent API Name, which you’ll find in Agent Studio → Setup.

Example Initialization

eucera("when", "ready", () => {
  const agent = eucera.agent({ /* …common setup… */ });
  // Now you can call any of the methods below:
  // agent.message(...).open().setViewType("WIDGET").hide()...
});

Open / Close the Agent

Open the agent

eucera.agent("myproduct-agentic-agent").open();

Close the agent

eucera.agent("myproduct-agentic-agent").close();

Remove / Destroy

Tear down the agent completely—unmounts the UI, clears its state, and frees resources.

agent("myproduct-agentic-agent").remove();

Visibility Controls

Show the agent trigger

eucera.agent("myproduct-agentic-agent").show();

Hide the agent trigger

eucera.agent("myproduct-agentic-agent").hide();

View Type

Setting the view type

// Recommended & Modern
eucera.agent("myproduct-agentic-agent")
  .setViewType("FLOATING_SIDE_PANEL")
  .open();

// Side panel
eucera.agent("myproduct-agentic-agent")
  .setViewType("SIDE_PANEL")
  .open();

//chat bot style
eucera.agent("myproduct-agentic-agent")
  .setViewType("WIDGET")
  .open();