How can we attach file from Google Drive into Email?

I need to attach a file from Google Drive into my email. How can we do it? Any suggestions.

You need to download that file or you can attach the file link if it shared publicly @mrkrunaldoshi

I don’t understand how you mean that. Can you elaborate

I am automating a process which requires to have a mail merge functionality along with attachment/s from Google Drive. I cannot attach the file/s as link. In GMail, when we compose an email, there is an option to add file from Google Drive as an attachment however not with Gmail API.

Let me know if there is any other way out.