IntegrationsOptions
Prop | Type | Description |
---|---|---|
createTicket | CreateTicketIntegrationOptions | Allow users to create tickets in a support system from the chat. |
CreateTicketIntegrationOptions
Prop | Type | Description | Default |
---|---|---|---|
enabled | boolean | Enable the create ticket feature | false |
provider | 'salesforce' | 'zendesk' | The provider to use for creating tickets. | |
prompt | string | The prompt to use to create a summary of the conversation between user and bot for the support agent | `You act as an expert summarizer.\n\n- You must write in the first person, as if you were the user writing a support ticket. Failure to do so will result in severe penalties.\n- Your task is to generate a short and precise summary of the user's input only.\n- You focus on the user message, and omit assistant messages unless strictly needed.\n- You must not include any references to creating a support ticket.\n- You must write a standalone summary, with no greetings or other extra text.\n- The summary must not be longer than the user messages. You will be penalized if it is longer.\n- You must output your response in plain text.\n- You must stricly adhere to these rules to avoid penalties.\n\nExample:\n- I am having an issue with setting up my payment processor.\n- I can no longer log in to my account.` |
messageText | string | Default text shown at the end of a chat message. | "Need more help?" |
messageButton | CreateTicketIntegrationMessageButtonOptions | Options for the button shown at the end of a chat message. | |
form | CreateTicketIntegrationFormOptions | Options for the create ticket form. | |
CustomCaseForm | ComponentType<{ summary?: string }> | Provide a custom case form component | |
chat | CreateTicketIntegrationChatOptions | Options for the create ticket chat. | |
user | CreateTicketIntegrationUserOptions | User options |
CreateTicketIntegrationViewOptions
Prop | Type |
---|
CreateTicketIntegrationMessageButtonOptions
Prop | Type | Description | Default |
---|---|---|---|
text | string | Button text shown at the end of a message | "Create a support case" |
hasIcon | boolean | Show icon? | true |
hasText | boolean | Show text? | true |