Configuration

Customize your agent’s appearance, behavior, and functionality by setting the properties below. These options allow you to control everything from logos and themes to layout and audio features.

PropertyTypeDefaultRequiredDescription
displayNamestringCopilotNoThe agent’s display name
logoUrlstringURL to the Eucera bee iconNoURL for the agent’s primary logo.
modalLogoUrlstringURL to the Eucera bee iconNoURL for the logo used within modals or dialogs.
titleTextstringHow can I help you today?NoThe main heading displayed in the agent panel.
quickStartHintstringNeed help? Here are some topics we can start withNoInstructional text guiding users on quick-start actions.
quickRepliesArray<{ title: string; subtitle?: string }>[]NoA list of preset buttons to kick off common conversations.
theme<see Theme Properties below>NoColor, font and bubble styling options
isLogoVisiblebooleantrueNoToggle to show or hide the agent’s logo.
isLTRbooleantrueNoText direction: left-to-right (true) or right-to-left (false).
isAudioEnabledbooleanfalseNoAllow users to send voice input instead of typing.
resumePreviousSessionbooleanfalseNoAutomatically reload the last session if the previous interaction was within 24 hours.

Theme Properties

PropertyTypeDefaultRequiredDescription
primaryColorstring#3248F2NoBrand or primary color
secondaryColorstring#3248F2NoSecondary color
primaryFontColorstring#121926NoPrimary text color
secondaryFontColorstring#697586NoSecondary text color
backgroundColorstring#ffffffNoWidget background color
speechBubblestring#f4f4f4NoSpeech-bubble color
speechBubbleTextstring#121926NoText color inside speech-bubbles
widgetBubbleBackgroundColorstring#3248F2NoBubble handle background color (applies only in mode "OVERLAY" & layoutMode "WIDGET")
fontFamilystringRobotoNoUI font family

You can also configure all of these settings in our Studio. Note that any SDK-side configuration will override the Studio values—allowing you to vary settings on a per-page or contextual basis.


Example

eucera("when", "ready", () => {
  eucera.agent({
    apiName: AGENT_API_NAME, 
    mode: "EMBEDDED", 
    configuration: {
      // UI text & icons
      displayName:       "Support Bot",
      logoUrl:           "https://example.com/logo.png",
      modalLogoUrl:      "https://example.com/modal-logo.png",
      titleText:         "How can I help you today?",
      quickStartHint:    "Try one of these quick commands:",
      quickReplies: [
        { title: "Show me features",    subtitle: "What this bot can do" },
        { title: "Contact support",     subtitle: "Talk to a human" }
      ],

      // Theme & styling
      theme: {
        primaryColor:                "#0055FF",
        secondaryColor:              "#FF5500",
        primaryFontColor:            "#FFFFFF",
        secondaryFontColor:          "#333333",
        backgroundColor:             "#F4F4F4",
        speechBubble:                "#E0E0E0",
        speechBubbleText:            "#000000",
        widgetBubbleBackgroundColor: "#FF0000",
        fontFamily:                  "Arial, sans-serif"
      },

      // Feature toggles
      isLogoVisible:         true,
      isLTR:                 true,
      isAudioEnabled:        false,
      resumePreviousSession: true,
    }
  });
});

Configuration at Runtime

Update any part of the AgentConfiguration after initialization—logos, theme, quick replies, etc.


eucera("when", "ready", () => {
  const agent = eucera.agent({ /* …common setup… */ });
  agent.setConfiguration({
    displayName: "Support Bot",
    logoUrl: "https://cdn.example.com/logo.png",
    theme: { /* … */ }
  });
});