Skip to content

JMAP Request and Response for AIBotSuggestion #1701

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

Open
AlaeMghirbi opened this issue Apr 8, 2025 · 0 comments · May be fixed by #1703
Open

JMAP Request and Response for AIBotSuggestion #1701

AlaeMghirbi opened this issue Apr 8, 2025 · 0 comments · May be fixed by #1703

Comments

@AlaeMghirbi
Copy link
Contributor

AlaeMghirbi commented Apr 8, 2025

JMAP Request and Response

AiBotJmapMethod is a JMAP method designed to take the user's input and the email to which they are replying, and generate a reply suggestion based on that input.

JMAP Documentation: https://jmap.io/spec-core.html

Request

{
  "using": ["com:linagora:params:aibot"],
  "methodCalls": [
    "AiBot/suggestReply", 
    {
      "accountId": "u123456",
      "userInput": "email content",
      "emailId": "a25c4b348-5e02-11ee-8c99-0242ac120002"
    },
    "0"
  ]
}

Definition of the Capability: "com:linagora:params:aibot"

Adding it in JmapCapability:

public class AIBotCapability implements Capability {
}

Question

Do I need to configure additional parameters when defining a capability, such as specifying a language?

Response

{
  "methodResponses": [
    [ "AiBot/suggestReply", {
      "suggestion": "Suggestion of the response"
    }, "0" ]
  ]
}
@AlaeMghirbi AlaeMghirbi linked a pull request Apr 15, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant