@letter-ai/copilot
v0.3.42
Published
Letter AI Copilot Component
Maintainers
Keywords
Readme
letter-ai-copilot
Letter AI Copilot Component
Install
npm install --save @letter-ai/copilotUsage
import React, { Component } from 'react'
import LetterAICopilot from 'copilot'
class Example extends Component {
render() {
return (
<LetterAICopilot
token='USER_TOKEN'
organizationId='ORGANIZATION_ID'
mode='expert'
displayName='USER_FULL_NAME' // optional
primaryColor='#000000' // optional
secondaryColor='#FFFFFF' // optional
gradient='linear-gradient(90deg, #000000 0%, #FFFFFF 100%)' // optional
expandedChatFromRight='40px' //optional
collapsedChatFromRight='52px' //optional
allowSourceDownload={false} //optional
greeting='Hello, how can I help you today?' // optional
prompts={[
{
label: 'Order Status',
question: 'What is the status of my order?',
}
]} //optional
layout={'default'} //optional. supported layouts: 'default', 'expanded', 'sidepanel'
isChatAssistEnabled={true} //optional
openOnLoad={false} //optional
copilotName={'Letter AI Co-pilot'} //optional
width='473x' //optional
customerInstructions='If you do not know the answer to a question, redirect the user to [email protected]' //optional
/>
)
}
}