bhukyayedukondalunaik_00285
08/05/2025, 5:22 PMtool->composio_connected_acc_id map for passing the connection_ids during composioToolSet initialization. But now, we are upgrading to v3 and the composio_connected_acc_id is in nanoid format. We tried to use the same nano_id (ca_.....) and mapped with the tool slug name. But we are getting the following error
Invalid connected accounts found: [('miro', 'ca_b8eH5za127J5')]
we are usign python langgraph sdk composio-langgraph = "^0.7.15"
Are we missing anything here ?
https://cdn.discordapp.com/attachments/1402340983412101180/1402341618324996096/image.png?ex=68938fe8&is=68923e68&hm=3e686d6deaac754362520288816fb805bd1cc65db1578b81a47136f92e01e4b1&Composio Support Agent
08/05/2025, 7:47 PMbhukyayedukondalunaik_00285
08/06/2025, 1:02 AMbhukyayedukondalunaik_00285
08/06/2025, 1:04 AMfrom composio_langgraph import ComposioToolSet, Action
.....
composio_toolset = ComposioToolSet(
entity_id=entity_id,
api_key=composio_api_key,
connected_account_ids=connected_account_ids
)
Here is the sample code snippetComposio Support Agent
08/06/2025, 5:30 AMbhukyayedukondalunaik_00285
08/06/2025, 5:35 AM${BASE_URL}/v3/connected_accounts,
payload,
{
headers: {
"x-api-key": composio_api_key,
"Content-Type": "application/json"
}
}
);
and we are extracting the redirectURL and the composio_connected_account id as redirect_url and id property of the response respectively.bhukyayedukondalunaik_00285
08/06/2025, 5:37 AMbhukyayedukondalunaik_00285
08/06/2025, 5:39 AMComposio Support Agent
08/06/2025, 5:43 AMbhukyayedukondalunaik_00285
08/06/2025, 5:46 AMbhukyayedukondalunaik_00285
08/06/2025, 6:41 AMconnected_account_ids: Dict[AppType, str] | None = None, to the ComposioToolSet explicity, to let only the specicied connected_id for the particulat toolKit to be used. This is the case when the connection with same entity_id (user_id) has multiple connections, then to use a particulare connection we made use of the connected_account_ids property. Do we have the same for the framework agnostic composio instace. If so, can you please share the detailed doc about how we can configure it and what should be the format ?Composio Support Agent
08/06/2025, 7:12 AMbhukyayedukondalunaik_00285
08/06/2025, 7:22 AMComposio Support Agent
08/06/2025, 10:17 AMconst res = await composio.tools.execute("GMAIL_SEND_EMAIL", {
userId: "default",
arguments: {
recipient_email: "uday.sidgana@gmail.com",
subject: "Test",
body: "Test",
},
connectedAccountId: "ca_xxxx"
});
relevant docs: