web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Trigger copilot studio...
Copilot Studio
Unanswered

Trigger copilot studio conversation from Flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I wonder if it is possible to trigger a copilot studio copilot topic by means of a powerautoamte flow?

If so, how does this work?

Categories:
I have the same question (0)
  • adilei Profile Picture
    on at

    You could do that via Directline, but why? What sort of requirement will be addressed with this pattern?

     

    Key concepts in the Bot Framework Direct Line API 3.0 - Azure AI Bot Service - Bot Service | Microsoft Learn

  • drlreinhard7 Profile Picture
    Microsoft Employee on at

    Want to trigger a conversation from a PowerApp via a button flow and use a value from a text field as trigger message that I send over. 

    I tried direct line but have difficulties getting it work. 

    Do you have some more specific info on directline and how this needs to be configured in detail?

  • adilei Profile Picture
    on at

    Not sure what specifics are needed, but here is a collection with some calls to Directline (the endpoint is for a non-us copilot)

     

    {
    	"info": {
    		"_postman_id": "5f615dff-8ef4-43ab-abfa-822bffc9ca44",
    		"name": "directline",
    		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    		"_exporter_id": "3035135"
    	},
    	"item": [
    		{
    			"name": "Authenticate",
    			"request": {
    				"auth": {
    					"type": "bearer",
    					"bearer": [
    						{
    							"key": "token",
    							"value": "",
    							"type": "string"
    						}
    					]
    				},
    				"method": "POST",
    				"header": [],
    				"url": {
    					"raw": "https://europe.directline.botframework.com/v3/directline/tokens/generate",
    					"protocol": "https",
    					"host": [
    						"europe",
    						"directline",
    						"botframework",
    						"com"
    					],
    					"path": [
    						"v3",
    						"directline",
    						"tokens",
    						"generate"
    					]
    				}
    			},
    			"response": []
    		},
    		{
    			"name": "Get Activities",
    			"protocolProfileBehavior": {
    				"disableBodyPruning": true
    			},
    			"request": {
    				"auth": {
    					"type": "bearer",
    					"bearer": [
    						{
    							"key": "token",
    							"value": "",
    							"type": "string"
    						}
    					]
    				},
    				"method": "GET",
    				"header": [],
    				"body": {
    					"mode": "raw",
    					"raw": "{\r\n \"locale\": \"en-EN\",\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"user1\"\r\n },\r\n \"text\": \"hello\"\r\n}",
    					"options": {
    						"raw": {
    							"language": "json"
    						}
    					}
    				},
    				"url": {
    					"raw": "https://europe.directline.botframework.com/v3/directline/conversations/Jwo4U8SNUqh9JxfGQrzeIi-eu/activities",
    					"protocol": "https",
    					"host": [
    						"europe",
    						"directline",
    						"botframework",
    						"com"
    					],
    					"path": [
    						"v3",
    						"directline",
    						"conversations",
    						"Jwo4U8SNUqh9JxfGQrzeIi-eu",
    						"activities"
    					]
    				}
    			},
    			"response": []
    		},
    		{
    			"name": "Send Activity",
    			"request": {
    				"auth": {
    					"type": "bearer",
    					"bearer": [
    						{
    							"key": "token",
    							"value": "",
    							"type": "string"
    						}
    					]
    				},
    				"method": "POST",
    				"header": [],
    				"body": {
    					"mode": "raw",
    					"raw": "{\r\n \"locale\": \"en-EN\",\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"user1\"\r\n },\r\n \"text\": \"hello\"\r\n}",
    					"options": {
    						"raw": {
    							"language": "json"
    						}
    					}
    				},
    				"url": {
    					"raw": "https://europe.directline.botframework.com/v3/directline/conversations/Jwo4U8SNUqh9JxfGQrzeIi-eu/activities",
    					"protocol": "https",
    					"host": [
    						"europe",
    						"directline",
    						"botframework",
    						"com"
    					],
    					"path": [
    						"v3",
    						"directline",
    						"conversations",
    						"Jwo4U8SNUqh9JxfGQrzeIi-eu",
    						"activities"
    					]
    				}
    			},
    			"response": []
    		},
    		{
    			"name": "Start Conversation",
    			"request": {
    				"auth": {
    					"type": "bearer",
    					"bearer": [
    						{
    							"key": "token",
    							"value": "",
    							"type": "string"
    						}
    					]
    				},
    				"method": "POST",
    				"header": [],
    				"url": {
    					"raw": "https://europe.directline.botframework.com/v3/directline/conversations",
    					"protocol": "https",
    					"host": [
    						"europe",
    						"directline",
    						"botframework",
    						"com"
    					],
    					"path": [
    						"v3",
    						"directline",
    						"conversations"
    					]
    				}
    			},
    			"response": []
    		}
    	],
    	"event": [
    		{
    			"listen": "prerequest",
    			"script": {
    				"type": "text/javascript",
    				"packages": {},
    				"exec": [
    					""
    				]
    			}
    		},
    		{
    			"listen": "test",
    			"script": {
    				"type": "text/javascript",
    				"packages": {},
    				"exec": [
    					""
    				]
    			}
    		}
    	],
    	"variable": [
    		{
    			"key": "conversationID",
    			"value": ""
    		}
    	]
    }
  • drlreinhard7 Profile Picture
    Microsoft Employee on at

    Thanks but that does not help much. 

    I need more specific information on what needs to be setup in Azure and PowerAutomate to make this work

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard