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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ docker-compose up -d
77
77
### Execute the whatsapp application
78
78
79
79
> [!NOTE]
80
-
> Before you start, make sure to fill the `ALLOWED_USERS` and `OPENAI_API_KEY` variables in the `.env.local` file. This variable determines the number of users who can interact with the bot.
80
+
> Before you start, make sure to fill the `ALLOWED_PHONE_NUMBERS` and `OPENAI_API_KEY` variables in the `.env.local` file. This variable determines the number of users who can interact with the bot.
81
81
82
82
1. Go to `whatsapp` directory and install all necessary packages:
Copy file name to clipboardExpand all lines: RUNNING_TERRAFORM_AWS.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ AWS_SECRET_ACCESS_KEY=
57
57
OPENAI_API_KEY=
58
58
SECURITY_KEY=
59
59
INCOMING_MESSAGE_FIFO_URL=
60
-
MESSAGES_PROCESSED_FIFO_URL=
60
+
RECOGNIZED_MESSAGES_FIFO_URL=
61
61
EOF
62
62
```
63
63
@@ -73,7 +73,7 @@ The table below explains the purpose of each variable along with suggested examp
73
73
|`OPENAI_API_KEY`| Your OpenAI API key |`sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`|
74
74
|`SECURITY_KEY`| Secret key used for AES encryption (must be exactly 16, 24, or 32 characters long, no accents) |`MySuperSecretAESKey12345678901234`|
75
75
|`INCOMING_MESSAGE_FIFO_URL`| The URL of the SQS FIFO queue for incoming messages |`https://sqs.us-east-1.amazonaws.com/123456789/incoming-messages.fifo`|
76
-
|`MESSAGES_PROCESSED_FIFO_URL`| The URL of the SQS FIFO queue for processed messages |`https://sqs.us-east-1.amazonaws.com/123456789/messages-processed.fifo`|
76
+
|`RECOGNIZED_MESSAGES_FIFO_URL`| The URL of the SQS FIFO queue for processed messages |`https://sqs.us-east-1.amazonaws.com/123456789/messages-processed.fifo`|
77
77
78
78
4. Execute the application in Dev mode
79
79
@@ -85,7 +85,7 @@ The table below explains the purpose of each variable along with suggested examp
85
85
86
86
6. Sign in at <http://localhost:8080>
87
87
88
-
7. Add the user phone number at <http://localhost:8080/home/user-configs>, this phone number must be set after on `ALLOWED_USERS`.
88
+
7. Add the user phone number at <http://localhost:8080/home/user-configs>, this phone number must be set after on `ALLOWED_PHONE_NUMBERS`.
89
89
90
90
## Configuring and running the whatsapp application
91
91
@@ -104,10 +104,10 @@ npm install
104
104
|`AWS_ACCESS_KEY_ID`| Your AWS Access Key |`AKIAxxxxxxxxxxxxxxxxxx`|
105
105
|`AWS_SECRET_ACCESS_KEY`| Your AWS Secret Key |`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`|
106
106
|`ASSETS_BUCKET`| The name of the bucket where audio and images will be stored (created via Terraform) |`my-assets-bucket`|
107
-
|`ALLOWED_USERS`| Comma-separated list of phone numbers allowed to interact with the bot |`5511999999999,5511888888888`|
107
+
|`ALLOWED_PHONE_NUMBERS`| Comma-separated list of phone numbers allowed to interact with the bot |`5511999999999,5511888888888`|
108
108
|`OPENAI_API_KEY`| Your OpenAI API Key used to access GPT and Whisper APIs |`sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`|
109
109
|`INCOMING_MESSAGE_QUEUE`| URL of the SQS queue that receives incoming messages |`https://sqs.us-east-1.amazonaws.com/123456789/incoming-messages.fifo`|
110
-
|`MESSAGES_PROCESSED_FIFO_URL`| URL of the SQS FIFO queue where processed messages are sent |`https://sqs.us-east-1.amazonaws.com/123456789/messages-processed.fifo`|
110
+
|`RECOGNIZED_MESSAGES_FIFO_URL`| URL of the SQS FIFO queue where processed messages are sent |`https://sqs.us-east-1.amazonaws.com/123456789/messages-processed.fifo`|
111
111
112
112
4. Start the application
113
113
@@ -127,7 +127,7 @@ npm run start
127
127
2. Fill out the registration form with your details and submit it.
128
128
3. Log in to your account at [http://localhost:8080](http://localhost:8080).
129
129
4. Add your phone number on the [User Configs page](http://localhost:8080/home/user-configs).
130
-
⚠️ Make sure the phone number matches one of the values defined in the `ALLOWED_USERS` environment variable.
130
+
⚠️ Make sure the phone number matches one of the values defined in the `ALLOWED_PHONE_NUMBERS` environment variable.
131
131
5. After connected the device with the scanned QR Code, send the following message: `"Achei mil reais no chão da praia"`.
0 commit comments