botman / botman/driver-hangouts

Conversations not working

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
10
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Not sure if this is a code issue or config issue with my bot, but after creating a very basic Bot via the Google Developer Console, my bot will respond properly to "first-level" commands, and issue the next command in the conversation thread. But, the next response is always directed back to the first level. For instance, with the sample code provided in Botman docs here: https://botman.io/2.0/conversations#starting-a-conversation

- conversation is initiated by saying 'Hello'
- bot responds as expected with 'Hello! What is your firstname?'
- user replies with 'matt'
- bot's `fallback()` method catches this as an unrecognized command instead of this response being delivered properly to the conversation thread.

This only happens with Hangouts Chat. The same code works fine in tinker, and in the Cisco Spark driver, hence why I am posting this here.

Are there any other suggestions or guidelines I need to follow with my bot config on Google, or is this a potential problem with the library?

Contributor guide

Open the contributing guide

Research direction

Start with the BotMan conversation example linked in the issue and trace how the Hangouts Chat driver handles the reply after the user sends “matt.” Compare that path with the working Tinker and Cisco Spark driver behavior; done means the reply reaches the active conversation instead of being caught by fallback().

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.