Git Product home page Git Product logo

customer_bot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

customer_bot's Issues

Custom Actions

Hello,
i have a question regarding the custom action.
in domain.yml you have specified the action as actions.ActionOrderProduct,
whereas in stories.md you have defined it as action_order_product.
i am getting an error about the action_order_product, as it is not recognizen, am i doing something wrong?

thanks

tracker.get_slot('router') returns None

Hi Nahid,

Thanks for building customer_bot. Awesome repo.

However, I am facing an issue in actions.py. When I run your dialogue_management_model code, the statement tracker.get_slot("router") returns None. A sample of my conversation is shown below.

me: hi
bot: Hello! How can I help?
me: I need a router
bot: Which product?
me: 829
bot: Your product None is ordered for you. It will be shipped to your address. Your confirmation number is 123456

Could you please tell me what's going on and how might we fix this error?

train_init.py

**Hi mam ,

I am unable to run train_init.py in python as when I run , below modified code :**

from future import absolute_import
from future import division
from future import unicode_literals

import logging

from rasa_core.agent import Agent
from rasa_core.policies.keras_policy import KerasPolicy
from rasa_core.policies.memoization import MemoizationPolicy

if name == 'main':
logging.basicConfig(level='INFO')

training_data_file = './data/stories.md'
model_path = './models/dialogue'

agent = Agent('customer_domain.yml', policies = [MemoizationPolicy(max_history = 2,), KerasPolicy(epochs = 500,
                                              
                                              batch_size = 10,
                                              validation_split = 0.2)])

data = agent.load_data('stories.md')
agent.train(data)

agent.persist(model_path)

I am getting the following error

TypeError: 'coroutine' object is not iterable

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.