yelsew
March 22, 2023, 8:24am
1
The idea is:
Add to the gMail Thread ID for Create Draft to be able to draft a reply using AI node but not send.
Resource -Draft
Operation - Reply
I also needed it. I made a PR to add this functionality.
Attaching Gmail draft to a thread using the threadId parameter #8194
I did not add a unit test because I don’t see how else to test it other than in real life.
I hope it will be integrated into the main bank soon.
In the meantime, I am using a custom version available here: neoroth/n8n:custom-base
3 Likes
Hi,
Also bumpiing to get someone to look at the PR please, Nicolas was kind to make the functionality
Hi @Nicolas_Compain provided a split PR for this, can someone please add it to the main? @Jon mentioned on the previous GitHub thread if its split, you guys can add it ?
n8n-io:master
← Nicolas-nwb:Add-threadId-parameter-to-DraftDescription-and-GmailV2.node.ts
opened 03:31PM - 23 Feb 24 UTC
## Summary
[Separation of PRs](https://github.com/n8n-io/n8n/pull/8194)
This… pull request solves an issue where drafts created via the Gmail API were not properly attached to an existing thread. Previously, drafts were created independently, without any connection to ongoing conversations. With this update, by passing the thread ID (threadId) during the creation of the draft, the draft is now correctly attached to the specified thread.
## Related tickets and issues
[Add Thread ID to gMail node Draft Resource](https://community.n8n.io/t/add-thread-id-to-gmail-node-draft-resource/24361)
## To test
1. Retrieve the ID of an existing thread in Gmail.
2. Use this ID in your request to create a draft.
3. Check if the draft appears in the specified thread in Gmail.
### Tests
A pre-built image with this functionality is available here : neoroth/n8n:custom-base
The functionality has been tested manually.


## Review / Merge checklist
- [x] PR title and summary are descriptive. **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** ([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md))
- [ ] [Docs updated](https://github.com/n8n-io/n8n-docs) or follow-up ticket created.
- [ ] Tests included.
> A bug is not considered fixed, unless a test is added to prevent it from happening again.
> A feature is not complete without tests.
1 Like