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

OmniChannel (Chat & DIDComm layer) #1

Open
liquidsurfer opened this issue Nov 8, 2023 · 0 comments
Open

OmniChannel (Chat & DIDComm layer) #1

liquidsurfer opened this issue Nov 8, 2023 · 0 comments

Comments

@liquidsurfer
Copy link

Use DIDComm to relay messages between different chat agents (Signal, Slack, WhatsaApp, email, SMS). This is a service extension of the general Relay requirement from the DIF DWN specification.

This will effectively allow a user to have messages from e.g. Alice's Whatsapp forwarded to Bob's Slack channel. We foresee that this will be a crucial requirement to enable marketplaces where participants might have differing preferences or capabilities when it comes to communication.

Image

See: https://identity.foundation/decentralized-web-node/spec/#topology and https://identity.foundation/decentralized-web-node/spec/#addressing

  enum ChannelType(agent: URI):
    case Slack extends ChannelType(URI("https://slack.com/api/chat.postMessage"))
    case WhatsApp extends ChannelType(URI("https://api.whatsapp.com/send"))
    case Signal extends ChannelType(URI("https://signal.org/api/v1/send"))
    case Telegram extends ChannelType(URI("https://api.telegram.org/bot"))
    case Email extends ChannelType(URI("smtp://smtp.gmail.com:587"))
    case SMS extends ChannelType(URI("https://api.twilio.com/2010-04)-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages.json")))
    
// did method = did:peer 
  case class Channels(channel: ChannelType, channelPairwiseDid: String)

For did:peer implementation see: https://identity.foundation/peer-did-method-spec/

@liquidsurfer liquidsurfer changed the title OmniChat OmniChannel Nov 8, 2023
@liquidsurfer liquidsurfer changed the title OmniChannel OmniChat (Channel) Nov 8, 2023
@liquidsurfer liquidsurfer changed the title OmniChat (Channel) OmniChannel (Chat & DIDComm layer) Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant