Slashdot Mirror


The White House Open Sources President Obama's Facebook Messenger Bot To 'Bring the Gov't To You' (whitehouse.gov)

The White House has open sourced the code for President Obama's Facebook Messenger bot in a hope that this will help other governments and developers build similar services. These services will ideally foster similar connections with their citizens with significantly less upfront investment. From the official post: It's also an important part of furthering our mission to "meet the public where they are." Millions of people contact their friends and family using Facebook Messenger. Why shouldn't they be able to contact the White House, too? And President Obama really reads these messages. Since 2009, he's made it part of his daily routine to read 10 letters sent to him by citizens -- something he refers to as the best part of his day. [...] To be specific, we are open-sourcing a Drupal module, complete with easy steps and boiler plate code. This will enable Drupal 8 developers to quickly launch a Facebook Messenger bot. We also left a few lines in the repository describing our hopes for the future of the code and encouraging members of the developer community to get involved.

37 comments

  1. Who benefits and How by negRo_slim · · Score: 4, Interesting

    This benefits who?

    --
    On the Oregon Cost born and raised, On the beach is where I spent most of my days
    1. Re:Who benefits and How by Anonymous Coward · · Score: 0

      naive "future is great" idiots - the majority of the general population

    2. Re:Who benefits and How by tripleevenfall · · Score: 2

      I'm waiting for them to open-source his teleprompter, then I can be president too!

    3. Re:Who benefits and How by Kohath · · Score: 1

      Who benefits from the perception that government is "there for you"? Government insiders and politicians. If this idea is believed, it helps them continue controlling money someone else earned and power that rightfully belongs to individual citizens in the country.

    4. Re: Who benefits and How by Anonymous Coward · · Score: 0

      Exactly. How does deploying a bot involve 'meeting people'? Sounds like they fired some people, to me. Lazy, and likely exists solely to collect data.

    5. Re:Who benefits and How by Anonymous Coward · · Score: 0

      Most of what you said is true of any politician. Face it, anyone that wants to be in government is hungry for power and wants to control people by any means possible. Obama is simply the least worst of the options we had.

    6. Re:Who benefits and How by rholtzjr · · Score: 1

      The government of course. This supports their desire to create and maintain an ignorant and thus compliant citizenry. By only providing information that they want you to have under the illusion that they are being open with you.

      It kind of reminds me of of the movie "Animal House" where Kevin Bacon is trying to quell a stampede at the parade ALL IS WELL

    7. Re: Who benefits and How by Anonymous Coward · · Score: 0

      Seems more useful than running win95 on a watch.

    8. Re: Who benefits and How by Anonymous Coward · · Score: 0

      Thank you may I have another?

  2. the source by Anonymous Coward · · Score: 2, Funny

    say(rnd() % 1 ? "hope" : "change)

    1. Re:the source by NoNonAlphaCharsHere · · Score: 1
      OK, now that's funny; and the 3rd post no less.

      Personally, I was going to go with:

      This will enable Drupal 8 developers to quickly launch a Facebook Messenger bot.

      Thanks, Obama!!

    2. Re:the source by Anonymous Coward · · Score: 0

      This didn't work. Did you accidentally get this from Healthcare.gov?

    3. Re:the source by Anonymous Coward · · Score: 0

      The version for Hillary is equally simple...

      (new Lie()).tell()

    4. Re:the source by poofmeisterp · · Score: 1

      say(rnd() % 1 ? "hope" : "change)

      This is very educational! The whole time I thought they were doing web searches about the most popular or dangerous topics of the day, ranking them, having humans sift through them and pick duplicates, use the duplicates to verify that they are not biased, and using AI to learn from previous interactions what the key words are after content is delivered; this allowed them to find what words to respond to with "hope" and/or "change" prefixed, suffixed, or inserted before and or after "to" and "and". This code has embarrassed my analytical skills severely. I can't believe it was that simple all along. now that I see it, it's SO OBVIOUS. /humor :)

  3. And President Obama really reads these messages. by JustNiz · · Score: 1

    Yea sure he does.

  4. 10 of them by Anonymous Coward · · Score: 0

    sorted by amount of ass kissing, hence the " best part of his day" part...

  5. You're his ant farm by Anonymous Coward · · Score: 0

    10 per day. Might as well call it a lottery.

  6. Confirmed! by PopeRatzo · · Score: 1

    Finally, absolute proof that so-called "open source" is really just a Marxist Kenyan plot to take away our liberties!

    LOCK HIM UP!

    --
    You are welcome on my lawn.
  7. I found the pseudocode by srichard25 · · Score: 0

    I found the pseudocode for it:

    if (messageIn = praise)
    then takeCreditForIt
    else if (messageIn = problem)
    then blameTheRepublicans
    else if (messageIn = requestFromForeignGovernment)
    then sendUserToClintonFoundationDonationForm
    else if (messageIn = ransomDemandFromIran)
    then setupUnmarkedBillExchange
    else if (messageIn = threatFromSyria)
    then drawMeaninglessLineInSand
    else if (messageIn = threatFromRussia)
    then makeEmptyThreatsThenCowerInCorner
    else if (messageIn = questionAboutVotingLocations)
    {
        if (user = Democrat or user = illegalAlien or user = dead)
        then giveMapToVotingLocationsWhereIdNotRequired
        else return500ServerError
    }

  8. Uh huh by Anonymous Coward · · Score: 0

    And how many billion did THAT cost?

  9. hey by Anonymous Coward · · Score: 0

    u up?

  10. Tay for president ! by Anonymous Coward · · Score: 0

    We need a bot for presidential candidates instead. More meaningful statements, less disgusting behavior, better chance to be perceived as human, may actually respond to the gist of your message instead of replying with a pre-cooked ad-hominem.

    What is not to like?

  11. Here's the update by Okian+Warrior · · Score: 1

    This is what he's trying to do:

    CORE::say(int rand(2) ? "hope" : "change");

    From the command line:

    perl -e "CORE::say(int rand(2) ? "hope" : "change");"

    You need the "CORE::" prefix on the "say" function because "say" is available only in the newer versions of perl (it'll eventually be default available).

    1. Re:Here's the update by Anonymous Coward · · Score: 0

      syntax and lexical errors were intended

    2. Re:Here's the update by Culture20 · · Score: 1

      CORE::

      You mispronounced CORPSE::

    3. Re:Here's the update by Zontar+The+Mindless · · Score: 1

      A real perl hacker would use cowsay.

      --
      Il n'y a pas de Planet B.
  12. giant step for humanity by Anonymous Coward · · Score: 0

    Obama was the first bot to pass the Turing test.

  13. 'Bring the Gov't to You' by Spasmodeus · · Score: 1

    Yeah, no thanks. You an keep the Gov't as far away from me as possible.

  14. Re:"bring..." as usual the classics by Anonymous Coward · · Score: 0

    ...say it best

    LEIBESH: Is there a proper blessing for the Tzar?

    RABBI: A blessing for the Tzar? Of course.
                            May God bless and keep the Tzar ...far away from us

    from Fiddler On the Roof
    music by Jerry Bock, lyrics by Sheldon Harnick, and book by Joseph Stein,

  15. The Donald by Anonymous Coward · · Score: 0

    Is there a way to open source Donald grabbing women by the pussy?

  16. The Really Are Robots... by LoudPipesSaveLives · · Score: 0

    If you've talked to anyone from the federal government recently, say like the IRS, you've thought you might have been talking to a robot. Now it's confirmed. I think they've been using the really stupid ones to send to the Congressional hearings on things like the IRS and Benghazi.

  17. Woohoo! by Anonymous Coward · · Score: 0

    Some excremental orchestra of PHP! No wonder Russia and China are walking right into their servers.