Giter VIP home page Giter VIP logo

whatsappbottut's Issues

unresolved import 'dialogflow_v2'

While importing "dialogflow_v2", shows error unresolved import 'dialogflow_v2'Python(unresolved-import).

Python version = python-3.8.5
IDE = VS Code

Hi I get this error "ERROR:google-auth 1.14.1 has requirement setuptools>=40.3.0 solution"

Hi @indian Pythonista I'm using Windows 8. On video 4 right at the end when I have to do a command "gift push heroku master" it does up load to heroku but with the following error
"ERROR:google-auth 1.14.1 has requirement setuptools>=40.3.0 solution" then when I test it in the browser it does show hello world. But now this error causes my WhatsApp system not to respond when I wright a message. Please help
Screenshot_20200424-024256_UC Mini

Screenshot_20200424-122604_Gallery

I only get one whatsapp answer via dialogflow instead of multiple replies

How do I get multiple 'text answers' in whatsApp? When I add more than one 'text response' in intents they work normally in the dialogFlow console.

But when I repeat the same question on whatsapp I get only one answer box instead of 3, for example, that I had created.

I tried this, but the messages just dont come to my bot on wpp.

def fetch_reply(query, session_id):
    response = detect_intent_from_text(query, session_id)
    return response.fulfillment_messages

And my new route look something like this:

@app.route("/sms", methods=['POST'])
def sms_reply():
    """Respond to incoming calls with a simple text message."""
    # Fetch the message
    msg = request.form.get('Body')
    phone_no = request.form.get('From')
    replies = fetch_reply(msg, phone_no)

    # Create reply
    resp = MessagingResponse()
    for reply in replies:
        resp.message(reply.text)
    return str(resp)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.