👨‍🏫 Tutorial Messenger Bot

itsmeRonjie

Forum Expert
Update: 01/29/2023
  • Unobfuscated code uploaded.
  • Added few steps to Dialogflow.
  • Added media to check if webhook is working in Dialogflow.
  • Added media to check if the AutoResponder is working.


Requirements:

  • Android Phone
  • Messenger Account - you can use dummy account
  • AutoResponder - You do not have permission to view the full content of this post. Log in or register now.
    Spoiler contents are visible only to Established Members.
  • Dialogflow by Google - You do not have permission to view the full content of this post. Log in or register now.
  • OPENAI API - already added to the code
  • Replit - You do not have permission to view the full content of this post. Log in or register now.
  • Script - You do not have permission to view the full content of this post. Log in or register now.
    Spoiler contents are visible only to Established Members.

Steps:​

Setting up Replit
  1. Create an account.
  2. Click Create
    1674829372455.png
  3. Template: Node.js
    1674833071773.png
  4. Title: anything you like then click "Create Repl"
    1674829606320.png
  5. open the download code then copy the script inside then paste it to your Repl. you can edit previousResponses to anything you like or you can change my name into your name
  6. In the shell tab: type the following code:
    Code:
    npm install E×ρréšš
    1674830605474.png
    Code:
    npm install actions-on-google
    1674830584294.png
    Code:
    npm install dialogflow-fulfillment --force
    1674830551464.png
  7. copy your own fork link
    1674830656387.png
Setting up Dialogflow
  1. Create an account to Dialogflow
  2. Go to Fullfilment
    1674830830208.png
  3. Enable Webhook
    1674830858166.png
  4. Paste your fork link to the URL *note add /dialogflow at the end
    1674830917538.png
  5. Click the gear icon
    1674831393245.png
  6. Click the Project ID name (mine is chatbot-veve)
    1674831433239.png
  7. Click IAM and Admin
    1674831513905.png
  8. Click Service Accounts
    1674831648163.png
  9. Click Create Service Account
    1674831678779.png
  10. Service Account Name: anything you like
    1674831766013.png
    1674831822605.png
    1674831846378.pngClick Done
  11. Click your created service
    1674831963350.png
  12. Click Keys
    1674831985199.png
  13. Click ADD KEY
    1674832010559.png
  14. Click Create new key
    1674832039056.png
  15. Click Create
    1674832055948.png
    note: json file will be downloaded after you click create
  16. Go to this link You do not have permission to view the full content of this post. Log in or register now. then click Default Fallback Intent
    1674930082254.png
  17. Under Fulfillment toggle Enable webhook call for this intent
    1674930234347.png
  18. Click SAVE
    1674930263647.png
  19. Go back to Intents then click Default Welcome Intent
    1674930338729.png
  20. Under Fulfillment toggle Enable webhook call for this intent
Setting up AutoResponder
  1. Create a Rule by click the + button
    1674832662051.jpeg
  2. Follow the settings
    1674832712493.jpeg
  3. Click Import JSON KEY then click CONTINUE
    1674832810977.jpeg
  4. Upload the JSON file you downloaded from Dialogflow


see attached video¹ - Sample output
see attached video² - Check if webhook is actually working in Dialogflow.
see attached video³ - Check if AutoResponder is working.
 

Attachments

About this Thread

  • 214
    Replies
  • 14K
    Views
  • 114
    Participants
Last reply from:
ryscuu

Trending Topics

Online now

Members online
1,128
Guests online
2,701
Total visitors
3,829

Forum statistics

Threads
2,315,763
Posts
29,183,933
Members
1,182,698
Latest member
adobo02
Back
Top