-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ts
67 lines (66 loc) · 1.71 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import { PluginDefinition } from '@connery-io/sdk';
import searchFaq from './actions/searchFaq';
const plugin: PluginDefinition = {
title: 'FAQ Plugin',
description:
'FAQ plugin allows you to ask questions and receive answers against a Google Sheet with a predefined list of questions and answers.',
actions: [searchFaq],
configurationParameters: [
{
key: 'faqListSheetId',
title: 'FAQ List Sheet ID',
description: 'ID of the Google Sheet with the list of FAQs.',
type: 'string',
validation: {
required: true,
},
},
{
key: 'faqLogSheetId',
title: 'FAQ Log Sheet ID',
description: 'ID of the Google Sheet where the access to the FAQs will be logged.',
type: 'string',
validation: {
required: true,
},
},
{
key: 'jsonKey',
title: 'JSON Key',
description: 'JSON key of the Google Cloud service account with access to the Google Sheets.',
type: 'string',
validation: {
required: true,
},
},
{
key: 'openAiApiKey',
title: 'OpenAI API Key',
description: 'OpenAI API key to access the OpenAI API to identify the FAQ based on the user prompt.',
type: 'string',
validation: {
required: true,
},
},
{
key: 'openAiModel',
title: 'OpenAI Model',
description:
'OpenAI model to use to identify the FAQ based on the user prompt. We recommend using gpt-3.5-turbo-0613.',
type: 'string',
validation: {
required: true,
},
},
],
maintainers: [
{
name: 'Connery',
email: '[email protected]',
},
],
connery: {
runnerVersion: '0',
},
};
export default plugin;