Messaging API

The Agentic Agent can be controlled programmatically from your application.

You can send messages to it as if the user typed them, enabling seamless product flows that blend conversation, actions, and UI components.

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()...
});

message(text: string): this

Programmatically send a chat message as if the user typed it into the agent.

eucera.agent("myproduct-agentic-agent")
  .message("Configure brand settings for me");

Send Dynamic Message

const userName = "Mickey";
agent("eucera-saas-bot")
  .message(`Hi ${userName}, let’s review your pipeline today`)
  .open();