Platform Contributor Guide
[Legacy v3] Platform
[Legacy v3] Platform
  • 👋[Legacy v3] Welcome | README
  • Contributing | Getting Involved
    • Specific tasks needed for COVID19-support
    • Add code to Ushahidi
    • Encouraging contribution from non-developers
  • Frequently Asked Questions
  • Join the Ushahidi community
  • Contributors ✨
  • 🛣️ The Ushahidi Platform Roadmap
    • V2-V3+ Migration tool
  • Privacy and security best practices
    • Security as a user
    • Security for deployment admins
    • Security for deployment hosts
  • Development & Code
    • Development: Overview
    • How to get the source code
    • Setup Guides
      • Installing for production environments
      • Development environment with XAMPP
      • Development environment setup with Vagrant
      • [Client] Setting up the Platform Client for development
        • Migration from AngularJS
      • Setting up the Pattern Library for development
      • [API & Client] Bundled release install
    • Add code to Ushahidi
    • Development process
    • Coding Standards
    • Track and submit issues in Github
    • Upgrading Ushahidi
      • Upgrading to latest release
      • Upgrading from V3.x.x to V4.x.x
    • ⚙️ Installation Helper‌
  • Tech Stack
    • API Documentation
    • Third party app development
      • Web hooks
    • Database | Tables overview
    • Database | Database Schema Diagram
    • Database | Table details
    • 📐Architecture
    • Use case internals
  • QA & Testing
    • The QA process
    • How to run QA tests
    • Defect Management
    • How to write QA test scripts
    • Hotfixes
  • Front-end development
    • Changing UI styles: introduction to the pattern library
      • File-structure
      • Installing new packages
      • How to Apply to the Platform
      • Using the changed styles in platform-client
      • Syntax and Formatting
      • Grid, Breakpoints, & Media Queries
      • Variables
      • Mixins
      • Helpers
      • Icons
      • Create a New Component from Scratch
      • Read Direction
  • Design
    • 🎨Design: overview
    • 'Best practice' design
    • Ushahidi Platform 'Sticker Sheet'
    • User testing process
    • User testing script examples
    • Synthesising user testing results examples
      • Synthesis example 1
      • Synthesis example 2
      • Synthesis example 3
      • Synthesis recommendations example 1
      • Synthesis recommendations example 2
    • Open Source Design
  • Documentation
    • Documentation
    • Contributing docs via GitHub
  • Translation
    • Localization and Translation
  • The Ushahidi Platform Facebook bot
    • The Facebook bot
      • Installing the bot
      • The bot script
  • Hackathon and events
    • Installathon, May 2019
      • Welcome to the hackathon!
    • Write/Speak/Code 2019
    • Open Design: Bangalore
    • Open Design: Taipei
    • 📑Google season of docs
    • 💻Google Summer of Code
      • GSoC 2024
  • Enhancement Proposals
    • Exchange Format
    • Importing data from previous versions
Powered by GitBook
On this page
  1. The Ushahidi Platform Facebook bot
  2. The Facebook bot

The bot script

The script the bot is using is stored in the bot-database. The script is set, but you can customise some parts of it to make it fit well with your deployment and organisation.

PreviousInstalling the botNextInstallathon, May 2019

If you feel adventurous you can go to the file before running the database seeds and migrations and change the wording of the questions. Please note, removing questions might cause the bot to break. You can change the wording of the questions, but not removing them.

The script

When the user start talking to the bot:

  • Hello! Welcome to {TITLE}

  • {NAME} is creating an open‐source resilience platform help communities reconnect, respond to, and recover from crisis situations.

  • Help us test the platform by sending us a report!

  • [Send a report ] ← this is a button the user can click on

When the user clicks “Send a report”:

  • In a few words, describe what you would like to report.

After the user writes a description he/she gets prompted with:

  • Anything else? If not, do you want to add a location or image to your report?

[Send my report] ← this is a button the user can click on

[Add an image] ← this is a button the user can click on

[Add a location] ← this is a button the user can click on

User selects option “add an image”:

  • Ok great! Just add a photo here like a normal chat, and I'll attach it to your report

The user uploads it and the bot replies with:

  • Ok, got it. Do you want to add a location to your report?

  • [Send my report] ← this is a button the user can click on

  • [Add a location] ← this is a button the user can click on

Or (if location is previously added):

  • Perfect! Do you want to send your report to us?

  • [Send my report] ← this is a button the user can click on

  • [Add an image] ← this is a button the user can click on

User selects option “add a location”

  • Please add your location below

User selects location on a map

  • Ok, got it. Do you want to add an image to your report?

Or ( if image is previously added) :

  • Perfect! Do you want to send your report to us?

User selects option “Send my report

  • Your report has been saved. Nice work!

  • A moderator will check your report before it is published to {NAME}

  • What do you want to do next?

    [Send another report ] ← this is a button the user can click on (report-flow starts again)

[Go to {NAME}]← this is a button the user can click on (link to the deployment)

database/seeds/AnswersTableSeeder.php