Skip to Content
The Makinari API repo now includes an MCP Server — connect your AI models directly. View on GitHub →

Accessible Properties

chat

Main chat object containing state, methods, and configuration.

Properties

const chat = window.MarketFit.chat; // Available properties chat.initialized // boolean: if initialized chat.conversationId // string|null: current conversation ID chat.conversations // Array: list of conversations chat.widget // ChatWidget: widget instance

Example

// Verify chat state console.log('Chat initialized:', window.MarketFit.chat.initialized); console.log('Conversations:', window.MarketFit.chat.conversations.length);

chatTitle

Current title of the chat widget.

Type

string

Example

// Get current title console.log('Chat title:', window.MarketFit.chatTitle); // Change title dynamically window.MarketFit.chatTitle = '24/7 Support';

welcomeMessage

Default welcome message of the chat.

Type

string

Example

// Get current message console.log('Welcome message:', window.MarketFit.welcomeMessage); // Change message window.MarketFit.welcomeMessage = 'Hello! How can we help you today?';
Last updated on