Enable ip forwarding:
sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv6.conf.all.forwarding=1
cargo run
ngrok http 1234
lt --port=1234 --subdomain=$USER$HOST
-
Compile and run the server with
cargo run
. -
Run
ngrok http 1234
and take note of the public HTTPS address, something likehttps://xxxxxxxx.ngrok.io
. Alternatively specify the-subdomain
flag for a persistent endpoint. -
Locally modify the
action.json
file, setting theconversations.automation.url
field to$URL/action
. -
Using the gActions CLI, run
gactions update --action_package=action.json
--project=$PROJECT
. -
Navigate to the Actions Console and click Add/Import Project.
-
Create a new project or import an existing Google Cloud project.
-
Navigate to the app overview.
-
Under "App information" click "ADD":
- Under "Name":
- Fill in "Display Name".
- Fill in "Pronunciation".
- Click "NEXT".
- Under "Details": Fill in "Introduction", "Short Description", "Full Description", "Category", and click "NEXT".
- Under "Images": Upload both a large banner and a small banner and click "NEXT".
- Under "Testing instructions (optional)": Click "NEXT".
- Under "Contact Details": Fill in "Email" and click "NEXT".
- Under "Privacy and consent": Fill in "Link to Privacy Policy" and click "SAVE".
- Under "Name":
-
Under "Account linking (optional)" click "ADD":
- Under "Grant type":
- Select "Authorization code".
- Click "NEXT".
- Under "Client information":
- Fill in "Client ID" to any value.
- Fill in "Client secret" to any value.
- Fill in "Authorization URL" to
$URL/auth
. - Fill in "Token URL" to
$URL/token
. - Click "NEXT".
- Under "Configure your client (optional)":
- Click "NEXT".
- Under "Testing instructions":
- Fill in "Testing instructions".
- Click "SAVE".
- Under "Grant type":