A simple NodeJS chat bot that allows you to search for eBay products using the eBay Finding API. There are two types of product keyword searches: new condition and used condition. Both responses include the product title, current bid price and eBay product URL. To search used products you need to include "used" in the message. To search used products you need to include "new" in the message. If you do not include the condition, it will default to new.
Sample Messages
- I want to buy VR goggles
- I need a new computer
- find used laptop
- I'm looking for a used chandelier
- search iphone
- do you have guitars
- tell me a joke
Sample Bot Response
I found this new "iphone" for you on eBay: Brand New Sealed Apple iPhone 6 32GB - Space Gray (Total Wireless) Smartphone The current bid price is $179.99. Here's the link: http://www.ebay.com/itm/Brand-New-Sealed-Apple-iPhone-6-32GB-Space-Gray-Total-Wireless-Smartphone-/322922642596
Dialogflow:
- Agent
- Web hook for fulfillment
- Client API key
To enable the Dialogflow agent to make a third-party api call, I build a simple web service.
- URL
https://ai-chat-bot-webhook.herokuapp.com/
- View source code
- Bulma - UI framework
- Express - Web framework
- socket.io - Real-time chat engine
- Dialogflow - Chat bot platform and API
- eBay Finding API - eBay inventory keyword search
- icanhazdadjoke API - Because this is a funny bot