How to create a message Extension that does not require any additional parameters, no pop ups

%3CLINGO-SUB%20id%3D%22lingo-sub-1417975%22%20slang%3D%22en-US%22%3EHow%20to%20create%20a%20message%20Extension%20that%20does%20not%20require%20any%20additional%20parameters%2C%20no%20pop%20ups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1417975%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20make%20a%20message%20extension%20that%20simply%20sends%20the%20message%20text%20to%20the%20Message%20Handler%20endpoint%20configured%20in%20the%20associated%20bot.%26nbsp%3B%20I%20would%20like%20to%20avoid%20showing%20the%20user%20additional%20popups%20as%20they%20provide%20no%20value%20in%20my%20use%20case.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20%22App%20Studio%22%20and%20the%20schema%20requires%20some%20additional%20parameter%20to%20be%20present%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202020-05-26%20at%2010.47.53%20AM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194430iD56D843CD0560B4F%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Screen%20Shot%202020-05-26%20at%2010.47.53%20AM.png%22%20alt%3D%22Screen%20Shot%202020-05-26%20at%2010.47.53%20AM.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIs%20there%20not%20a%20way%20to%20simply%20have%20the%20user%20click%20on%20the%20message%20extension%20and%20that%20be%20the%20totality%20of%20the%20user%20interaction%20required%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1417975%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1418006%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20create%20a%20message%20Extension%20that%20does%20not%20require%20any%20additional%20parameters%2C%20no%20pop%20ups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1418006%22%20slang%3D%22en-US%22%3EClick%20on%20the%20menu%20icon%20(three%20stacked%20dots)%20on%20the%20top-right%20of%20the%20Chrome%20screen.%3CBR%20%2F%3EClick%20%E2%80%9CSettings%E2%80%9D.%3CBR%20%2F%3EScroll%20to%20the%20bottom%20and%20click%20%E2%80%9CAdvanced%E2%80%9D.%3CBR%20%2F%3EIn%20the%20Privacy%20and%20Security%20section%2C%20scroll%20down%20and%20click%20%E2%80%9CContent%20Settings%E2%80%9D.%3CBR%20%2F%3EClick%20%E2%80%9CNotifications%E2%80%9D.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1418291%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20create%20a%20message%20Extension%20that%20does%20not%20require%20any%20additional%20parameters%2C%20no%20pop%20ups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1418291%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F493704%22%20target%3D%22_blank%22%3E%40Lewis-H%3C%2FA%3E.%20%26nbsp%3BThanks%20for%20the%20reply%20but%20I%20think%20you%20are%20misreading%20my%20question.%20The%20popup%20is%20part%20of%20the%20teams%20flow%20right%20now%2C%20and%20I%20believe%20mandatory.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEven%20if%20changing%20this%20setting%20in%20Chrome%20prevented%20the%20popup%20it%20would%20break%20the%20teams%20logic%20flow%20as%20far%20as%20I%20can%20tell.%20Also%20I%20wouldn't%20be%20able%20to%20force%20every%20customer%20who%20downloads%20the%20app%20to%20enable%20this.%20In%20addition%2C%20I%20assume%20most%20users%20would%20be%20on%20Mobile%20or%20use%20the%20Teams%20dedicated%20app.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1419330%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20create%20a%20message%20Extension%20that%20does%20not%20require%20any%20additional%20parameters%2C%20no%20pop%20ups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1419330%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F567036%22%20target%3D%22_blank%22%3E%40adamhouck%3C%2FA%3E%26nbsp%3BA%20Message%20Extension%20can%20have%20two%20types%20of%20commands.%20Search-based%20and%20action-%20based.%20A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fmessaging-extensions%2Fhow-to%2Fsearch-commands%2Fdefine-search-command%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Esearch%20based%20command%3C%2FA%3E%20will%20let%20you%20search%20through%20a%20list%20and%20send%20the%20messages%20inside%20the%20compose%20box.%20An%20a%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fmessaging-extensions%2Fhow-to%2Faction-commands%2Fdefine-action-command%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ection%20based%20command%3C%2FA%3E%20opens%20up%20a%20popup%20that%20will%20take%20some%20action%20from%20the%20Message-Extension.%20If%20you%20do%20not%20want%20to%20have%20the%20pop-up%20experience%20you%20could%20use%20only%20search%20based%20commands.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1434540%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20create%20a%20message%20Extension%20that%20does%20not%20require%20any%20additional%20parameters%2C%20no%20pop%20ups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1434540%22%20slang%3D%22en-US%22%3E%3CP%3EI%20was%20able%20to%20get%20the%20desired%20functionality%20by%20having%20the%20following%20in%20my%20manifest.json%20file%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%22composeExtensions%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%22botId%22%3A%20%22--Bot%20Id%20Here--%22%2C%0A%20%20%20%20%20%20%20%20%22canUpdateConfiguration%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%22commands%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22id%22%3A%20%22commandId%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22type%22%3A%20%22action%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22title%22%3A%20%22Command%20Title%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22description%22%3A%20%22%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22initialRun%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22fetchTask%22%3A%20false%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22context%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22message%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%5D%0A%20%20%20%20%7D%0A%5D%2C%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I want to make a message extension that simply sends the message text to the Message Handler endpoint configured in the associated bot.  I would like to avoid showing the user additional popups as they provide no value in my use case.

 

The "App Studio" and the schema requires some additional parameter to be present 

Screen Shot 2020-05-26 at 10.47.53 AM.png


Is there not a way to simply have the user click on the message extension and that be the totality of the user interaction required?

4 Replies
Highlighted
Click on the menu icon (three stacked dots) on the top-right of the Chrome screen.
Click “Settings”.
Scroll to the bottom and click “Advanced”.
In the Privacy and Security section, scroll down and click “Content Settings”.
Click “Notifications”.
Highlighted

@Lewis-H.  Thanks for the reply but I think you are misreading my question. The popup is part of the teams flow right now, and I believe mandatory. 

 

Even if changing this setting in Chrome prevented the popup it would break the teams logic flow as far as I can tell. Also I wouldn't be able to force every customer who downloads the app to enable this. In addition, I assume most users would be on Mobile or use the Teams dedicated app. 

Highlighted

@adamhouck A Message Extension can have two types of commands. Search-based and action- based. A search based command will let you search through a list and send the messages inside the compose box. An action based command opens up a popup that will take some action from the Message-Extension. If you do not want to have the pop-up experience you could use only search based commands.

Highlighted

I was able to get the desired functionality by having the following in my manifest.json file

"composeExtensions": [
    {
        "botId": "--Bot Id Here--",
        "canUpdateConfiguration": true,
        "commands": [
            {
                "id": "commandId",
                "type": "action",
                "title": "Command Title",
                "description": "",
                "initialRun": true,
                "fetchTask": false,
                "context": [
                    "message"
                ]
            }
        ]
    }
],