Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added instagram channel code #9594

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2453c80
added instagram channel code
Horizon733 Sep 9, 2021
f59b803
Merge branch 'main' into instagram-integration
Horizon733 Sep 9, 2021
a5877f9
changelog md file added
Horizon733 Sep 9, 2021
f15002f
Merge remote-tracking branch 'origin/instagram-integration' into inst…
Horizon733 Sep 9, 2021
c885433
changelog md file added
Horizon733 Sep 9, 2021
64238e8
Merge branch 'main' into instagram-integration
Horizon733 Sep 15, 2021
4a0a645
Merge branch 'main' into instagram-integration
Horizon733 Sep 19, 2021
cd00310
added docstring, renamed classes to prevent conflict with facebook.py…
Horizon733 Sep 21, 2021
25463dc
Merge branch 'main' into instagram-integration
Horizon733 Sep 21, 2021
8849194
Merge branch 'main' into instagram-integration
Horizon733 Oct 23, 2021
c93d462
Merge branch 'main' into instagram-integration
Horizon733 Nov 2, 2021
33112ab
added instagram channel code
Horizon733 Sep 9, 2021
26cdd26
changelog md file added
Horizon733 Sep 9, 2021
f0594c2
changelog md file added
Horizon733 Sep 9, 2021
be6b97c
added docstring, renamed classes to prevent conflict with facebook.py…
Horizon733 Sep 21, 2021
b619d18
Merge remote-tracking branch 'origin/instagram-integration' into inst…
Horizon733 Nov 11, 2021
fab3f1d
modified facebook.py to messenger.py to support Instagram and Faceboo…
Horizon733 Nov 12, 2021
b64700f
modified facebook.py to messenger.py to support Instagram and Faceboo…
Horizon733 Nov 12, 2021
f93fe67
Merge branch 'main' of https://github.com/Horizon733/rasa into instag…
Horizon733 Nov 12, 2021
d22236b
Merge branch 'main' into instagram-integration
Horizon733 Nov 13, 2021
85bf4dd
Merge branch 'main' into instagram-integration
Horizon733 Nov 16, 2021
6242ed7
Merge branch 'main' into instagram-integration
Horizon733 Nov 17, 2021
2ff994e
fixed typo in README.md
Horizon733 Nov 21, 2021
c804cc3
Merge remote-tracking branch 'origin/instagram-integration' into inst…
Horizon733 Nov 21, 2021
d37424b
Merge branch 'main' into instagram-integration
Horizon733 Nov 21, 2021
83d7775
merge and conflicts resolve from Main branch
Horizon733 Jan 5, 2022
6d07ca3
Merge branch 'main' into instagram-integration
Horizon733 Jan 5, 2022
e53c35e
Merge branch 'main' into instagram-integration
Horizon733 Jan 5, 2022
b8e6f03
Merge branch 'main' into instagram-integration
Horizon733 Jan 10, 2022
6e0107c
Merge branch 'main' of https://github.com/Horizon733/rasa into instag…
Horizon733 Jan 17, 2022
cd33e00
Merge remote-tracking branch 'origin/instagram-integration' into inst…
Horizon733 Jan 17, 2022
e4e4e8a
Merge branch 'main' of https://github.com/Horizon733/rasa into instag…
Horizon733 Jun 7, 2022
f6cae03
Merge branch 'main' into instagram-integration
Horizon733 Jun 13, 2022
d8969a9
Merge branch 'main' into instagram-integration
Horizon733 Jul 10, 2022
9fb26ee
added few updates in docs and added tests for messenger
Horizon733 Jul 14, 2022
873cde3
Merge branch 'main' into instagram-integration
Horizon733 Jul 14, 2022
91f476e
Merge branch 'main' into instagram-integration
Horizon733 Jul 21, 2022
674a1ed
added few updates in docs and added tests for messenger
Horizon733 Jul 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ updates to 3.0. Read more about [our contributor guidelines](#how-to-contribute)
<img align="right" height="255" src="https://www.rasa.com/assets/img/sara/sara-open-source-2.0.png" alt="An image of Sara, the Rasa mascot bird, holding a flag that reads Open Source with one wing, and a wrench in the other" title="Rasa Open Source">

Rasa is an open source machine learning framework to automate text-and voice-based conversations. With Rasa, you can build contextual assistants on:
- Facebook Messenger
- Facebook and Instagram Messenger
- Slack
- Google Hangouts
- Webex Teams
Expand Down
1 change: 1 addition & 0 deletions changelog/9594.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`Instagram` channel integration
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
id: facebook-messenger
sidebar_label: Facebook Messenger
title: Facebook Messenger
description: Build a Rasa Chat Bot on Facebook Messenger
id: messenger
sidebar_label: Messenger
title: Messenger
description: Build a Rasa Chat Bot on Facebook and Instagram Messenger
---

## Facebook Setup
## Facebook\Instagram Setup

You first need to set up a facebook page and app to get credentials to connect to
Facebook Messenger. Once you have them you can add these to your `credentials.yml`.

### Getting Credentials

**How to get the Facebook credentials:**
**How to get the Facebook\Instagram credentials:**
You need to set up a Facebook app and a page.

1. To create the app head over to
Expand Down Expand Up @@ -58,10 +58,11 @@ For more detailed steps, visit the
Add the Facebook credentials to your `credentials.yml`:

```yaml-rasa
facebook:
messenger:
verify: "rasa-bot"
secret: "3e34709d01ea89032asdebfe5a74518"
page-access-token: "EAAbHPa7H9rEBAAuFk4Q3gPKbDedQnx4djJJ1JmQ7CAqO4iJKrQcNT0wtD"
messenger-service: "facebook/instagram"
```


Expand Down
2 changes: 1 addition & 1 deletion docs/docs/messaging-and-voice-channels.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Learn how to make your assistant available on:

* [Your Own Website](./connectors/your-own-website.mdx)

* [Facebook Messenger](./connectors/facebook-messenger.mdx)
* [Facebook Messenger](./connectors/facebook-and-instagram-messenger.mdx)

* [Slack](./connectors/slack.mdx)

Expand Down
18 changes: 9 additions & 9 deletions rasa/core/channels/__init__.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
from typing import Text, Dict, List, Type

from rasa.core.channels.botframework import BotFrameworkInput # noqa: F401
from rasa.core.channels.callback import CallbackInput # noqa: F401
from rasa.core.channels.channel import ( # noqa: F401
InputChannel,
OutputChannel,
UserMessage,
CollectingOutputChannel,
)

# this prevents IDE's from optimizing the imports - we need to import the
# above first, otherwise we will run into import cycles
from rasa.core.channels.socketio import SocketIOInput
from rasa.core.channels.botframework import BotFrameworkInput # noqa: F401
from rasa.core.channels.callback import CallbackInput # noqa: F401
from rasa.core.channels.console import CmdlineInput # noqa: F401
from rasa.core.channels.facebook import FacebookInput # noqa: F401
from rasa.core.channels.hangouts import HangoutsInput # noqa: F401
from rasa.core.channels.mattermost import MattermostInput # noqa: F401
from rasa.core.channels.messenger import MessengerInput # noqa: F401
from rasa.core.channels.rasa_chat import RasaChatInput # noqa: F401
from rasa.core.channels.rest import RestInput # noqa: F401
from rasa.core.channels.rocketchat import RocketChatInput # noqa: F401
from rasa.core.channels.slack import SlackInput # noqa: F401

# this prevents IDE's from optimizing the imports - we need to import the
# above first, otherwise we will run into import cycles
from rasa.core.channels.socketio import SocketIOInput
from rasa.core.channels.telegram import TelegramInput # noqa: F401
from rasa.core.channels.twilio import TwilioInput # noqa: F401
from rasa.core.channels.twilio_voice import TwilioVoiceInput # noqa: F401
from rasa.core.channels.webexteams import WebexTeamsInput # noqa: F401
from rasa.core.channels.hangouts import HangoutsInput # noqa: F401

input_channel_classes: List[Type[InputChannel]] = [
CmdlineInput,
FacebookInput,
MessengerInput,
SlackInput,
TelegramInput,
MattermostInput,
Expand Down