You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-24Lines changed: 20 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,14 @@ This service can be used to conduct surveys from LimeSurvey with bots created by
4
4
5
5
Build
6
6
--------
7
+
7
8
Execute the following command on your shell:
8
9
9
10
```shell
10
-
gradle clean build
11
+
gradle build
11
12
```
12
13
14
+
Make sure the ``shs`` database exists. If not, create a new database with the same name
13
15
Start
14
16
--------
15
17
@@ -22,17 +24,14 @@ bin/start_network.bat
22
24
```
23
25
24
26
Unix/Mac:
27
+
25
28
```shell
26
29
bin/start_network.sh
27
30
```
28
31
29
-
30
-
31
-
32
-
# Starting a survey bot on slack:
32
+
# Starting a survey bot on slack
33
33
34
34
### Creating a slack app
35
-
36
35
37
36
To create a survey chatbot, first a slack app needs to be created. Creating a classic bot app is possible [here](https://api.slack.com/apps?new_classic_app=1). (Wait for the app creation window to pop up, do not click on the green "Create New App" button).
38
37
Since the las2peersocial-bot-manager-service uses RTM, a classic app, instead of a new app, is needed.
@@ -46,30 +45,27 @@ Since the las2peersocial-bot-manager-service uses RTM, a classic app, instead of
46
45
- channels:read
47
46
48
47
- chat:write:bot
49
-
48
+
50
49
- bot
51
-
50
+
52
51
- users:read.email (users:read included)
53
52
54
53
- incoming-webhook should already be there. If not add under basic information: incoming webhooks: activate incoming webhooks sliding button
55
54
56
55
- Please do not update scopes!
57
-
56
+
58
57
Now install the app to your wished workspace. After this a token will be generated which is used in the redirect url.
59
58
60
59
1. Find the bot token: On the left side: OAuth and Permissons, the bot user oauth token (starting with xoxb).
61
-
60
+
62
61
2. Activate interactive components (on the left side: Basic Information: Add features and functionality, Interactive Components. After activating this feature, a Request URL is needed.)
63
62
64
63
3. Configuring the request url:
65
64
66
65
- The ip address and port where slack posts the request (the address from the sbfmanager), slack app token, the bot name from the frontend, the instance name from the frontend and the buttonintent text are needed.
1. Create a bot model by following the guide [here](https://github.com/rwth-acis/Social-Bot-Framework).
75
71
@@ -85,24 +81,24 @@ Now install the app to your wished workspace. After this a token will be generat
85
81
86
82
- The bot actions needs the following action parameters: (all Content Type: String, Static and Parameter Type: body)
87
83
88
-
*Name: NameOfUser and Content: the username of your "https://limesurvey.tech4comp.dbis.rwth-aachen.de/" account;
89
-
*Name: Password and Content: the password of your limesurvey account;
90
-
* Name: surveyID and Content: The surveyID of the survey you want to conduct. You can find this by logging into your limesurvey account and then clicking on "List surveys". In the survey list you will see on the very left side the Survey ID.
91
-
* Name: buttonIntent and Content: The button intent, which is going to be recognized when participants click on answer buttons
92
-
* Name: sbfmUrl and Content: The URL where the social-bot-framework-manager can receive requests
93
-
* Name: slackToken and Content: The slack token that has been added to the "Messenger" with type "Slack" as "Authentication Token"
94
-
* Name: adminmail and Content: the email of the admin user (Content Type: String and Parameter Type: body)
84
+
-Name: NameOfUser and Content: the username of your "https://limesurvey.tech4comp.dbis.rwth-aachen.de/" account;
85
+
-Name: Password and Content: the password of your limesurvey account;
86
+
- Name: surveyID and Content: The surveyID of the survey you want to conduct. You can find this by logging into your limesurvey account and then clicking on "List surveys". In the survey list you will see on the very left side the Survey ID.
87
+
- Name: buttonIntent and Content: The button intent, which is going to be recognized when participants click on answer buttons
88
+
- Name: sbfmUrl and Content: The URL where the social-bot-framework-manager can receive requests
89
+
- Name: slackToken and Content: The slack token that has been added to the "Messenger" with type "Slack" as "Authentication Token"
90
+
- Name: adminmail and Content: the email of the admin user (Content Type: String and Parameter Type: body)
95
91
96
92
4. It is possible to add routines for sending reminders or sending results to LimeSurvey.
97
93
98
94
- for routine: Action Type: Service, Function Name: reminderRoutine.
99
-
95
+
100
96
- for LimeSurvey results: Action Type: Service, Function Name:sendResultsToLimesurvey.
101
97
102
98
- for MobSOS surveys results: Action Type: Service, Function Name:sendResultsToMobsosSurveys.
103
99
104
100
- both of them need the action parameters from the main bot actions
105
101
106
-
### Creating a LimeSurvey Survey:
102
+
### Creating a LimeSurvey Survey
107
103
108
104
-enable under Participants settings: "Allow multiple responses or update responses with one token."
0 commit comments