https://linen.dev logo
c
Could you share the logId of the Tool call along with the Tool you are trying to execute?
a
how to get log id?
ToolUseBlock(id='toolu_018F8EVnMwJKezijLrzk1hkz', input={'recipient_email': 'test@gmail.com', 'subject': 'Update: Project Status', 'body': 'Hi Please let me know if you have any questions or need further information.', 'is_html': False, 'user_id': 'asdas#3$'}, name='GMAIL_SEND_EMAIL', type='tool_use')
i have this
@Uday @udaysidagana
c
Hi Aarish, I can see the
user_id
being passed as "**asdas#3$**". It looks like you mistook the param/argument of the
GMAIL_SEND_EMAIL
with the
user_id
of the connected account. The user_id in the param/argument is for the gmail API endpoint. You can omit the argument or pass it as
me
. Lmk if you still face the Issue. Also, I've attached couple of images for your reference(Tool call arguments and where to find the logId). https://cdn.discordapp.com/attachments/1409165179349893180/1409582701845155910/Screenshot_2025-08-25_at_22.15.18.png?ex=68ade7b0&is=68ac9630&hm=33d68b7ce6ec3788d59841e798ffe139afa3a551c62c5f8b2d45cf4fd99a3e38& https://cdn.discordapp.com/attachments/1409165179349893180/1409582702197211156/Screenshot_2025-08-25_at_22.27.01.png?ex=68ade7b0&is=68ac9630&hm=560f9c7957886fd8eeb694fb0832e936cd903b3113e2903f9412d7ec702272dc&
a
ok I got it
i want to ask another question related to this
how to get scopes here dynarmically
if i don't define it supposed to use default all scopes right?
@Uday @udaysidagana
c
Yes, it'll configure the same scopes as Default App.
Not all scopes but the same scopes as Default app.
a
what do you mean by default app?
i got this error
if i omit the scopes
it worked
@Uday @udaysidagana
c
Ok, just to confirm—your Tool call works with the Auth Config where you define scope and you create Auth Config via SDK or UI?
a
with UI it works becuase it has all scopes, and with sdk it does not work, because i didn't define any scope
i want to make dynamic, so same function can be used for any toolkit
@Uday @udaysidagana
c
Aarish, it could be an Issue with your configuration or credentials. To narrow the Issue, can you try configuring scopes via SDK and lmk if it works?
a
can we have a call?
i shared with you the configuration
I will try defining scopes share results
c
Sure, let me know if defining the scopes works for you, and I'll try to resolve the issue. Happy to hop on a call if necessary.
a
sure on it
I think you are right problem is in configuration scopes_str = ",".join([ "https://www.googleapis.com/auth/gmail.modify", "https://www.googleapis.com/auth/userinfo.profile", "https://www.googleapis.com/auth/userinfo.email", "https://www.googleapis.com/auth/contacts.readonly", "https://www.googleapis.com/auth/contacts.other.readonly", "https://www.googleapis.com/auth/profile.language.read", "https://www.googleapis.com/auth/user.addresses.read", "https://www.googleapis.com/auth/user.birthday.read", "https://www.googleapis.com/auth/user.emails.read", "https://www.googleapis.com/auth/user.phonenumbers.read", "https://www.googleapis.com/auth/profile.emails.read", ]) options = { "type": "use_custom_auth", "auth_scheme": "OAUTH2", "name": auth_name, "credentials": { "client_id": os.getenv("GOOGLE_CLIENT_ID"), "client_secret": os.getenv("GOOGLE_CLIENT_SECRET"), "redirect_uri": os.getenv("COMPOSIO_RETURN_URL"), "scopes": scopes_str, } } i have added scopes but still not getting it
but when i do it with UI
that worked
@Uday @udaysidagana
can you share example
how to do it correctly?
c
Sure, you can refer this [Documentation](https://docs.composio.dev/docs/programmatic-auth-configs#using-your-own-oauth2-credentials). Also, it looks like you haven't changed your
redirect_uri
to
oauth_redirect_uri
in the credentials. FYI: you can skip defining
oauth_redirect_uri
if you want to use the Default composio redirectUri().
a
can you please explain where i get oauth redirect uri?
@Uday @udaysidagana can we connect on call?
i didn't understand?
c
Could you let me know how you want to configure your Auth Config? 1\. Do you want to use your custom credentials and make authorised users to your Auth app? 2\. Do you want to white-label your OAuth consent screen? Please refer to this Documentation and lmk: https://cdn.discordapp.com/attachments/1409165179349893180/1409601693124923403/Screenshot_2025-08-25_at_23.37.48.png?ex=68adf960&is=68aca7e0&hm=6017cf87070278222542e7c5fe4b06027a19210f0374750d8314d36082f8fcaf&
a
yes
i did that
i define url in google cloud and add it on options Do you want to use your custom credentials and make authorised users to your Auth app?
tell me where i am wrong
@Uday @udaysidagana
c
It looks like you are using localhost:3000, please make it accessible to the internet.
a
no i have not configured credentails on UI
i think i understand the issue
app is not deployed yet
i am using client id and secrect and url from GCC
may be what's why it is not working
not sure
i will deploy app tomorrow will try again
c
You can use credentials of GCC app in development. It could be an issue with your redirectUri. You can try passing your credentials and keep the default redirectUri and let me know if it works for you.
a
I have checked everything, white label it, but still not working, it is not sending emails or getting profile etc is it possible to have a meeting? I will show you my code what i tested
@udaysidagana @Uday
c
Yes, let me know when you are available for a quick meet.
a
can you send me the sample of configurations? i tried with and without defining it does not work
c
Could you please share screen recording of the Auth flow, from creating Auth Config to connection initiation?
a
sure
please check
what i am doing wrong
u
@aarishmaqsood , you can using your local server as a redirect url, please make it available to internet. You can use ngrok.
a
if i deploy this on aws whatever i have, will it work?
@Uday
p
@udaysidagana Can we fetch inbound after authenticating? Or can composio connection only be action tools?
u
@aarishmaqsood you can get it running by deploying the server in AWS and using the server url as your redirect_url.
Hey @peter_signore  , By inbound did you mean webhooks and triggers? Please provide some context regarding your query.
p
If the user, for example, is connecting to gmail. The user already gave permission, shouldn't there be some sort of inbound service like a webhook available?
a
@Uday @udaysidagana I have deployed on aws
but still not working
i will share the video
c
Please configure the deployed uri in GCC.
a
thanks
c
Sure! let me know if that works for you.
ok here still failed to sent
if possible can we have a meeting now?
@Uday @udaysidagana
c
Sure, I've shared details in your DM.
a
sure
u
Thanks Aarish, I'll keep you updated.
Just to confirm— could you try initiating a connection via UI and lmk if that's reflecting all the scopes?
a
via UI it reflects all scopes
I showed this in yesterday meeting as well
u
Yes, we've created new Auth config and initiated a connection, can you try initiating a connection for the Auth config which was created programatically?
a
from UI again or via code?
should I create programitically ?
c
Things to do: 1. Initiate a connection via UI for the Auth config which was created programatically(with
oauth_redirect_uri
). 2. Share the screen recording for the same.
OK I made it
it still shows only 3 scopes
but failed
still 3 scopes
I made it work 🕺
the problem is with type
@Uday @udaysidagana
"type": "use_composio_managed_auth", we supposed to use this type
either way thanks for your time
sorry but it is not white labeling
wrong call
"type": "use_composio_managed_auth", if we use this it will not be whilelabeled anymore
c
Are you available for a quick meet?
a
yes
I am able to get all scopes
but still not working
the only difference i noticed
referenshing token validity
c
I've shared details of the meeting in DMs.
You can now use your
oauth_redirect_uri
while configuring the Auth Config and will be able to use white labelling.
a
yes it's white labelled and working now, thanks again
c
Awesome, let me know if you face any Issues.
p
explain triggers when possible, is there more thorough doc?
c
You can refer to this doc:
Let me know if you face any Issues.
a
not able to connect to slack
do we need to enable API for slack as well?
in Google Cloud Console
@Uday @udaysidagana
c
Slack is unrelated to GCC. Could you share a screen recording?
a
sure
@Uday @udaysidagana
not able to change redirecturi
how to do that?
a
every toolkit has different process of whitelabeling?
@Uday @udaysidagana
c
Could you try initiating a connection with the credentials of this app and lmk if it works for you?
a
it's working now
if we used composio auth
it shows like this
@Uday @udaysidagana
p
Is there any way to white label to not do so manually on a per toolkit basis? @Uday
u
@aarishmaqsood , "This app was created by a member of your workspace, Peter S." is a banner from Slack itself, it connot be configured from Composio side.
@peter_signore, I didn't understand your query. Could you provide some context on "manually"?
a
why the message is different for composio app then dynaris app? how is it configured?
p
like how it had to be done with slack for example, we're manually tapping into Slack to create the app
u
The Slack app is created by someone from your workspace. Hence, it's showing th banner. Also, @peter_signore you can get the Toolkit Auth and connection schema using [API](https://docs.composio.dev/api-reference/toolkits/get-toolkits-by-slug?explorer=true) or SDK: [Auth](https://docs.composio.dev/sdk-reference/python/python-sdk-reference#get_auth_config_creation_fields) , [Connection](https://docs.composio.dev/sdk-reference/python/python-sdk-reference#get_connected_account_initiation_fields).
a
is there anyway to automate whitelabeling part for all toolkits? @Uday @udaysidagana
u
Yes Aarish, as suggested, you can get the required fields at the time of Auth Config creation and connection initiation and fill them dynamically. FYI: you still need to get the credentials of your custom Auth App for each Toolkit.
a
ok