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

Update custom-connectors.mdx #13005

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/docs/connectors/custom-connectors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ from rasa.core.channels.channel import (
)

class MyIO(InputChannel):
def name() -> Text:
def name(self) -> Text:
"""Name of your custom channel."""
return "myio"

Expand Down Expand Up @@ -182,7 +182,7 @@ To test your custom connector, you can `POST` messages to the webhook using a js
```json
{
"sender": "test_user", // sender ID of the user sending the message
"message": "Hi there!",
"text": "Hi there!",
"metadata": {} // optional, any extra info you want to add for processing in NLU or custom actions
}
```
Expand All @@ -195,7 +195,7 @@ curl --request POST \
--header 'Content-Type: application/json' \
--data '{
"sender": "test_user",
"message": "Hi there!",
"text": "Hi there!",
"metadata": {}
}'
```
Expand Down