In this tutorial, you will be useing Google Apps Script and fBuilder to setup
"automatically sent message notifications" to a Telegram Group (and/or an Email address) every time a person submits your Google Form
Before things get started, receive the Telegram Chat ID of the group you want to have response messages sent by adding "Get My ID (tg bot)" to a Telegram Group (remove the bot after receiving the Chat ID), and make sure "Pinponboy (tg bot)" is a member of that group
via https://drive.google.com/ or https://docs.google.com/forms/
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Make sure to have a question where the respondent has to fill in their email.
3. Open Apps Script Editor
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
4. Replace content of code.gs with Webhook Script
- Remember to Rename the project
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Webhook Script example:
Edit var Content (in code.gs)
- qFormId: Replace BW with your initials, modify 01 as necessary
- qbot: Replace with your bot name
- qTgID: Replace with the Chat ID of the Telegram group you want form responses to be sent to
- qBcc: Add any emails you want responses
- Responses: Change the names and response number based on your form questions
Click "Save" after editing
Add a new Trigger
Go to the "Triggers" page
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Click "Add Trigger"
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
In the dropdown menu for "Select event type", select "On form submit", then click "Save"
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Accept Apps Scripts authorization requests
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Close the Apps Script
Login https://run.ypcloud.com, choose "fBuilder", click "Go"
Create a new project
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Project Name, Title and QName (name of your Bot)
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- Edit the funtion node of the
reg
as the comment node shows
- Click "Done", then "Deploy" to save your changes
- Edit the
to email
function nodes: modify msg.payload
(following "content"
) according to responses in your Google Form's webhook script
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
7. Deploy and QRun to q11
8. Go to IOCWatch to find your Bot's QRun location
https://iocwatch.ypcloud.com/
-
Click on
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
to go the Control panel
-
Find and click on q11/qbix/dc
in the left sidebar
-
Click on "Info"
-
Find your Bot from the list
-
Copy the mma in the first column
(It should look like: q11/qbix/qx-yourname-3asdfghj-yourbotname-app
)
-
Paste it back to the reg
function node like the comment node shows
-
Deploy and QRun to q11 again
After QRun, fill in a Google form and test whether the responses will be sent to your Telegram Group or Email
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Clouder Book
fBuilder User Guide
Allen, Shin, Eugene