Skip to content

Commit 24fd5a1

Browse files
author
Vikas Agarwal
committed
Github issue#1106, Add IBM chatbot as a project type
— copy changes — question type changes
1 parent 9dc19c9 commit 24fd5a1

File tree

3 files changed

+19
-29
lines changed

3 files changed

+19
-29
lines changed

src/config/projectQuestions/ibm_chatbot.v1.0.js

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -210,50 +210,38 @@ export const basicSections = [
210210
type: 'checkbox-group',
211211
fieldName: 'details.appDefinition.capabilities',
212212
options: [
213-
{value: 'order_management', label: 'Order Management'},
213+
{value: 'order_management', label: 'Order management'},
214214
{value: 'information', label: 'Information'},
215215
{value: 'help', label: 'Help'},
216216
{value: 'complaints', label: 'Complaints'},
217217
{value: 'billing', label: 'Billing'},
218-
{value: 'account_management', label: 'Account Management'},
219-
{value: 'custom', label: 'Custom'}
218+
{value: 'account_management', label: 'Account management'},
219+
{value: 'custom', label: 'Custom (please explain in the Notes)'}
220220
],
221221
},
222222
{
223223
icon: 'question',
224224
required: true,
225-
title: 'Will the chatbot need to provide data from any systems to support the capabilities you listed above?',
225+
title: 'Will the chatbot need to access data from any systems to support the capabilities you listed above? If so, please list the systems below. (Change to text box)',
226226
description: '',
227-
type: 'radio-group',
228-
fieldName: 'details.appDefinition.integrationSystems',
229-
options: [
230-
{value: 'true', label: 'Yes'},
231-
{value: 'false', label: 'No'}
232-
]
227+
type: 'textbox',
228+
fieldName: 'details.appDefinition.integrationSystems'
233229
},
234230
{
235231
icon: 'question',
236232
required: true,
237-
title: 'Do you have existing agent scripts?',
233+
title: 'Do you have any example agent conversations you can provide? If so, please paste them or any links to documents below (you’ll be able to upload documents later).',
238234
description: '',
239-
type: 'radio-group',
240-
fieldName: 'details.appDefinition.existingAgentScripts',
241-
options: [
242-
{value: 'true', label: 'Yes'},
243-
{value: 'false', label: 'No'}
244-
]
235+
type: 'textbox',
236+
fieldName: 'details.appDefinition.existingAgentScripts'
245237
},
246238
{
247239
icon: 'question',
248240
required: true,
249-
title: 'Are you planning to transfer conversations to human agents?',
241+
title: 'Are you planning to transfer conversations to human agents? If so, please list the agents’ communication tools (e.g., Slack, LiveAgent, Intercom, etc.)',
250242
description: '',
251-
type: 'radio-group',
252-
fieldName: 'details.appDefinition.transferToHumanAgents',
253-
options: [
254-
{value: 'true', label: 'Yes'},
255-
{value: 'false', label: 'No'}
256-
]
243+
type: 'textbox',
244+
fieldName: 'details.appDefinition.transferToHumanAgents'
257245
}
258246
]
259247
},

src/config/projectWizard/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ const products = {
6363
icon: 'product-app',
6464
id: 'application_development'
6565
},
66-
ChatBot: {
67-
brief: 'ChatBot',
68-
details: 'Build ChatBot using IBM Watson',
66+
'IBM Chatbot': {
67+
brief: 'IBM Chatbot',
68+
details: 'Build Chatbot using IBM Watson',
6969
icon: 'product-chatbot',
70-
id: 'ibm_chatbot'
70+
id: 'ibm_chatbot',
71+
hidden: true
7172
},
7273
'Software Development': {
7374
brief: 'Tasks or adhoc',

src/projects/create/components/SelectProduct.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ function SelectProduct(props) {
1515
for(const subType in subTypes) {
1616
const item = subTypes[subType]
1717
// don't render disabled items for selection
18-
if (item.disabled) continue
18+
// don't render hidden items as well, hidden items can be reached via direct link though
19+
if (item.disabled || item.hidden) continue
1920
const icon = <SVGIconImage filePath={item.icon} />
2021
cards.push(
2122
<ProductCard

0 commit comments

Comments
 (0)