@n8n/n8n-nodes-langchain
Version:

4 lines • 861 kB
JSON
[
{"displayName":"Alibaba Cloud Model Studio","name":"alibabaCloud","group":["transform"],"version":[1,1.1],"defaultVersion":1.1,"subtitle":"={{ $parameter[\"operation\"] + \": \" + $parameter[\"resource\"] }}","description":"Interact with Alibaba Cloud Qwen models via Model Studio","defaults":{"name":"Alibaba Cloud Model Studio"},"usableAsTool":true,"codex":{"alias":["qwen","dashscope","alibaba","model studio","video","image"],"categories":["AI"],"subcategories":{"AI":["Agents","Miscellaneous","Root Nodes"]},"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-langchain.alibabacloud/"}]}},"inputs":"={{\n\t\t(() => {\n\t\t\tconst resource = $parameter.resource;\n\t\t\tconst operation = $parameter.operation;\n\t\t\tif (resource === 'text' && operation === 'message') {\n\t\t\t\treturn [{ type: 'main' }, { type: 'ai_tool', displayName: 'Tools' }];\n\t\t\t}\n\n\t\t\treturn ['main'];\n\t\t})()\n\t}}","outputs":["main"],"credentials":[{"name":"alibabaCloudApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Text","value":"text"},{"name":"Image","value":"image"},{"name":"Video","value":"video"}],"default":"text"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["text"]}},"options":[{"name":"Message a Model","value":"message","action":"Message a model","description":"Create a completion with a Qwen model"}],"default":"message"},{"displayName":"Model","name":"modelId","type":"options","options":[{"name":"Qwen3 Max","value":"qwen3-max","description":"Most capable model with best performance"},{"name":"Qwen3 Max (2026-01-23)","value":"qwen3-max-2026-01-23","description":"Qwen Max snapshot from 2026-01-23"},{"name":"Qwen3.5 122B-A10B","value":"qwen3.5-122b-a10b","description":"MoE model with 122B total / 10B active parameters"},{"name":"Qwen3.5 27B","value":"qwen3.5-27b","description":"Dense 27B parameter model"},{"name":"Qwen3.5 35B-A3B","value":"qwen3.5-35b-a3b","description":"Small MoE model with 35B total / 3B active parameters"},{"name":"Qwen3.5 397B-A17B","value":"qwen3.5-397b-a17b","description":"Large MoE model with 397B total / 17B active parameters"},{"name":"Qwen3.5 Flash","value":"qwen3.5-flash","description":"Faster, more cost-effective model"},{"name":"Qwen3.5 Flash (2026-02-23)","value":"qwen3.5-flash-2026-02-23","description":"Qwen Flash snapshot from 2026-02-23"},{"name":"Qwen3.5 Plus","value":"qwen3.5-plus","description":"Balanced model with good performance and cost"},{"name":"Qwen3.5 Plus (2026-02-15)","value":"qwen3.5-plus-2026-02-15","description":"Qwen Plus snapshot from 2026-02-15"}],"default":"qwen3.5-flash","description":"The model to use for generation","displayOptions":{"show":{"@version":[1],"operation":["message"],"resource":["text"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"textModelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. qwen3.5-flash"}],"displayOptions":{"show":{"@version":[{"_cnd":{"gte":1.1}}],"operation":["message"],"resource":["text"]}}},{"displayName":"Messages","name":"messages","type":"fixedCollection","typeOptions":{"multipleValues":true},"default":{"messageValues":[{"content":"","role":"user"}]},"placeholder":"Add Message","options":[{"name":"messageValues","displayName":"Message","values":[{"displayName":"Content","name":"content","type":"string","typeOptions":{"rows":4},"default":"","description":"The content of the message"},{"displayName":"Role","name":"role","type":"options","options":[{"name":"User","value":"user"},{"name":"Assistant","value":"assistant"}],"default":"user","description":"The role of the message sender"}]}],"displayOptions":{"show":{"operation":["message"],"resource":["text"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to return a simplified version of the response instead of the raw data","displayOptions":{"show":{"operation":["message"],"resource":["text"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Enable Search","name":"enableSearch","type":"boolean","default":false,"description":"Whether to enable web search for up-to-date information"},{"displayName":"Max Tokens","name":"maxTokens","type":"number","typeOptions":{"minValue":1},"default":2000,"description":"Maximum number of tokens to generate"},{"displayName":"Max Tools Iterations","name":"maxToolsIterations","type":"number","default":15,"description":"Maximum number of tool-calling iterations before stopping. Set to 0 for unlimited."},{"displayName":"Repetition Penalty","name":"repetitionPenalty","type":"number","typeOptions":{"minValue":1,"maxValue":2,"numberPrecision":2},"default":1.1,"description":"Penalty for token repetition. Higher values reduce repetition."},{"displayName":"Seed","name":"seed","type":"number","default":1234,"description":"Random seed for reproducible outputs"},{"displayName":"Stop Sequences","name":"stop","type":"string","default":"","description":"Comma-separated list of sequences where the API will stop generating"},{"displayName":"System Message","name":"system","type":"string","default":"","placeholder":"e.g. You are a helpful assistant"},{"displayName":"Temperature","name":"temperature","type":"number","typeOptions":{"minValue":0,"maxValue":2,"numberPrecision":2},"default":1,"description":"Controls randomness in the output. Lower values make output more focused and deterministic."},{"displayName":"Top K","name":"topK","type":"number","typeOptions":{"minValue":1,"maxValue":100},"default":50,"description":"Limits the sampling pool to top K tokens"},{"displayName":"Top P","name":"topP","type":"number","typeOptions":{"minValue":0,"maxValue":1,"numberPrecision":2},"default":0.9,"description":"Nucleus sampling parameter. Lower values make output more focused."}],"displayOptions":{"show":{"operation":["message"],"resource":["text"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["image"]}},"options":[{"name":"Analyze Image","value":"analyze","action":"Analyze image","description":"Take in images and answer questions about them"},{"name":"Generate an Image","value":"generate","action":"Generate an image","description":"Creates an image from a text prompt"}],"default":"generate"},{"displayName":"Model","name":"modelId","type":"options","options":[{"name":"Qwen-VL Flash","value":"qwen3-vl-flash","description":"Fast vision-language model"},{"name":"Qwen-VL Plus","value":"qwen3-vl-plus","description":"Enhanced vision-language model"}],"default":"qwen3-vl-flash","description":"The model to use for image analysis","displayOptions":{"show":{"@version":[1],"operation":["analyze"],"resource":["image"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"visionModelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. qwen3.5-flash"}],"displayOptions":{"show":{"@version":[{"_cnd":{"gte":1.1}}],"operation":["analyze"],"resource":["image"]}}},{"displayName":"Input Type","name":"inputType","type":"options","options":[{"name":"URL","value":"url"},{"name":"Binary Data","value":"binary"}],"default":"url","description":"How to provide the image for analysis","displayOptions":{"show":{"operation":["analyze"],"resource":["image"]}}},{"displayName":"Image URL","name":"imageUrl","type":"string","default":"","description":"The URL of the image to analyze","required":true,"placeholder":"https://example.com/image.jpg","displayOptions":{"show":{"inputType":["url"],"operation":["analyze"],"resource":["image"]}}},{"displayName":"Input Data Field Name","name":"binaryPropertyName","type":"string","default":"data","required":true,"placeholder":"e.g. data","hint":"The name of the input field containing the binary file data to be processed","displayOptions":{"show":{"inputType":["binary"],"operation":["analyze"],"resource":["image"]}}},{"displayName":"Question","name":"question","type":"string","typeOptions":{"rows":4},"default":"","description":"The question or instruction about the image","required":true,"placeholder":"What is in this image?","displayOptions":{"show":{"operation":["analyze"],"resource":["image"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to return a simplified version of the response instead of the raw data","displayOptions":{"show":{"operation":["analyze"],"resource":["image"]}}},{"displayName":"Options","name":"visionOptions","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Temperature","name":"temperature","type":"number","typeOptions":{"minValue":0,"maxValue":2,"numberPrecision":2},"default":1,"description":"Controls randomness in the output. Lower values make output more focused and deterministic."},{"displayName":"Max Tokens","name":"maxTokens","type":"number","typeOptions":{"minValue":1},"default":2000,"description":"Maximum number of tokens to generate"}],"displayOptions":{"show":{"operation":["analyze"],"resource":["image"]}}},{"displayName":"Model","name":"modelId","type":"options","options":[{"name":"Qwen Image","value":"qwen-image","description":"Qwen image generation model"},{"name":"Qwen Image Max","value":"qwen-image-max","description":"Most capable Qwen image generation model"},{"name":"Qwen Image Plus","value":"qwen-image-plus","description":"Enhanced Qwen image generation model"},{"name":"Wan 2.6 T2I","value":"wan2.6-t2i","description":"Wanx image generation model"},{"name":"Z-Image Turbo","value":"z-image-turbo","description":"Fast image generation model"}],"default":"z-image-turbo","description":"The model to use for image generation","displayOptions":{"show":{"@version":[1],"operation":["generate"],"resource":["image"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"imageGenerationModelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. qwen3.5-flash"}],"displayOptions":{"show":{"@version":[{"_cnd":{"gte":1.1}}],"operation":["generate"],"resource":["image"]}}},{"displayName":"Prompt","name":"prompt","type":"string","typeOptions":{"rows":4},"default":"","description":"The text prompt describing the image to generate","required":true,"displayOptions":{"show":{"operation":["generate"],"resource":["image"]}}},{"displayName":"Download Image","name":"downloadImage","type":"boolean","default":true,"description":"Whether to download the generated image as binary data. When disabled, only the image URL is returned.","displayOptions":{"show":{"operation":["generate"],"resource":["image"]}}},{"displayName":"Options","name":"imageOptions","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Size","name":"size","type":"options","displayOptions":{"show":{"/modelId":["z-image-turbo","wan2.6-t2i"]}},"options":[{"name":"1024x1024","value":"1024*1024"},{"name":"720x1280","value":"720*1280"},{"name":"1280x720","value":"1280*720"}],"default":"1024*1024","description":"The size of the generated image"},{"displayName":"Size","name":"size","type":"options","displayOptions":{"show":{"/modelId":["qwen-image","qwen-image-plus","qwen-image-max"]}},"options":[{"name":"1104x1472 (3:4)","value":"1104*1472"},{"name":"1328x1328 (1:1)","value":"1328*1328"},{"name":"1472x1104 (4:3)","value":"1472*1104"},{"name":"1664x928 (16:9)","value":"1664*928"},{"name":"928x1664 (9:16)","value":"928*1664"}],"default":"1664*928","description":"The size of the generated image"},{"displayName":"Prompt Extend","name":"promptExtend","type":"boolean","default":false,"description":"Whether to automatically extend and enhance the prompt"}],"displayOptions":{"show":{"operation":["generate"],"resource":["image"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"displayOptions":{"show":{"resource":["video"]}},"options":[{"name":"Generate Video From Text","value":"textToVideo","action":"Generate video from text prompt","description":"Generate a video from a text prompt"},{"name":"Generate Video From Image","value":"imageToVideo","action":"Generate video from image","description":"Generate a video from one or more images using Wan models"}],"default":"textToVideo"},{"displayName":"Model","name":"modelId","type":"options","options":[{"name":"Wan 2.6 Text-to-Video","value":"wan2.6-t2v","description":"Text-to-video generation model"}],"default":"wan2.6-t2v","description":"The model to use for text-to-video generation","displayOptions":{"show":{"@version":[1],"resource":["video"],"operation":["textToVideo"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"textToVideoModelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. qwen3.5-flash"}],"displayOptions":{"show":{"@version":[{"_cnd":{"gte":1.1}}],"resource":["video"],"operation":["textToVideo"]}}},{"displayName":"Prompt","name":"prompt","type":"string","typeOptions":{"rows":4},"default":"","required":true,"description":"The text prompt to generate video from","placeholder":"A cat playing with a ball of yarn","displayOptions":{"show":{"resource":["video"],"operation":["textToVideo"]}}},{"displayName":"Resolution","name":"resolution","type":"options","options":[{"name":"720P","value":"720P"},{"name":"1080P","value":"1080P"}],"default":"1080P","description":"Resolution tier of the generated video","displayOptions":{"show":{"resource":["video"],"operation":["textToVideo"]}}},{"displayName":"Duration (Seconds)","name":"duration","type":"number","typeOptions":{"minValue":2,"maxValue":15},"default":5,"description":"Duration of the generated video in seconds (2–15)","displayOptions":{"show":{"resource":["video"],"operation":["textToVideo"]}}},{"displayName":"Shot Type","name":"shotType","type":"options","options":[{"name":"Single","value":"single"},{"name":"Multi","value":"multi"}],"default":"single","description":"Whether to generate a single-shot or multi-shot narrative video","displayOptions":{"show":{"resource":["video"],"operation":["textToVideo"]}}},{"displayName":"Download Video","name":"downloadVideo","type":"boolean","default":true,"description":"Whether to download the generated video as binary data. When disabled, only the video URL is returned.","displayOptions":{"show":{"resource":["video"],"operation":["textToVideo"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to return a simplified version of the response instead of the raw data","displayOptions":{"show":{"resource":["video"],"operation":["textToVideo"]}}},{"displayName":"Options","name":"videoOptions","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Prompt Extend","name":"promptExtend","type":"boolean","default":false,"description":"Whether to automatically extend and enhance the prompt"},{"displayName":"Audio","name":"audio","type":"boolean","default":true,"description":"Whether to generate audio for the video"},{"displayName":"Audio Input Type","name":"audioInputType","type":"options","options":[{"name":"Audio URL","value":"url"},{"name":"Binary File","value":"binary"}],"default":"url"},{"displayName":"Audio URL","name":"audioUrl","type":"string","default":"","placeholder":"https://example.com/audio.mp3","description":"URL of the audio file to use for the video","displayOptions":{"show":{"audioInputType":["url"]}}},{"displayName":"Audio Data Field Name","name":"audioBinaryPropertyName","type":"string","default":"audio","placeholder":"e.g. audio","hint":"The name of the input field containing the binary audio data","typeOptions":{"binaryDataProperty":true},"displayOptions":{"show":{"audioInputType":["binary"]}}}],"displayOptions":{"show":{"resource":["video"],"operation":["textToVideo"]}}},{"displayName":"Model","name":"modelId","type":"options","options":[{"name":"Wan 2.6 Image-to-Video Flash","value":"wan2.6-i2v-flash","description":"Fast image-to-video generation model"},{"name":"Wan 2.6 Image-to-Video","value":"wan2.6-i2v","description":"Standard image-to-video generation model"}],"default":"wan2.6-i2v-flash","description":"The model to use for image-to-video generation","displayOptions":{"show":{"@version":[1],"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"imageToVideoModelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. qwen3.5-flash"}],"displayOptions":{"show":{"@version":[{"_cnd":{"gte":1.1}}],"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Input Type","name":"inputType","type":"options","options":[{"name":"Image URL","value":"url"},{"name":"Binary File","value":"binary"}],"default":"url","displayOptions":{"show":{"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Image URL","name":"imgUrl","type":"string","required":true,"default":"","placeholder":"https://example.com/image.png","description":"The URL of the first-frame image to generate video from","displayOptions":{"show":{"inputType":["url"],"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Input Data Field Name","name":"binaryPropertyName","type":"string","default":"data","required":true,"placeholder":"e.g. data","hint":"The name of the input field containing the binary file data to be processed","displayOptions":{"show":{"inputType":["binary"],"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Prompt","name":"prompt","type":"string","typeOptions":{"rows":4},"default":"","description":"A text prompt describing the desired content and visual characteristics for the generated video","placeholder":"A small cat running on the grass","displayOptions":{"show":{"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Resolution","name":"resolution","type":"options","options":[{"name":"720P","value":"720P"},{"name":"1080P","value":"1080P"}],"default":"1080P","description":"Resolution tier of the generated video","displayOptions":{"show":{"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Duration (Seconds)","name":"duration","type":"number","typeOptions":{"minValue":2,"maxValue":15},"default":5,"description":"Duration of the generated video in seconds (2–15)","displayOptions":{"show":{"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Shot Type","name":"shotType","type":"options","options":[{"name":"Single","value":"single"},{"name":"Multi","value":"multi"}],"default":"single","description":"Whether to generate a single-shot or multi-shot narrative video","displayOptions":{"show":{"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Download Video","name":"downloadVideo","type":"boolean","default":true,"description":"Whether to download the generated video as binary data. When disabled, only the video URL is returned.","displayOptions":{"show":{"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to return a simplified version of the response instead of the raw data","displayOptions":{"show":{"resource":["video"],"operation":["imageToVideo"]}}},{"displayName":"Options","name":"imageToVideoOptions","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"Prompt Extend","name":"promptExtend","type":"boolean","default":false,"description":"Whether to automatically extend and enhance the prompt"},{"displayName":"Audio","name":"audio","type":"boolean","default":true,"description":"Whether to generate audio for the video"},{"displayName":"Audio Input Type","name":"audioInputType","type":"options","options":[{"name":"Audio URL","value":"url"},{"name":"Binary File","value":"binary"}],"default":"url"},{"displayName":"Audio URL","name":"audioUrl","type":"string","default":"","placeholder":"https://example.com/audio.mp3","description":"URL of the audio file to use for the video","displayOptions":{"show":{"audioInputType":["url"]}}},{"displayName":"Audio Data Field Name","name":"audioBinaryPropertyName","type":"string","default":"audio","placeholder":"e.g. audio","hint":"The name of the input field containing the binary audio data","typeOptions":{"binaryDataProperty":true},"displayOptions":{"show":{"audioInputType":["binary"]}}}],"displayOptions":{"show":{"resource":["video"],"operation":["imageToVideo"]}}}],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/vendors/AlibabaCloud/alibaba.svg"},
{"displayName":"Anthropic","name":"anthropic","group":["transform"],"version":1,"subtitle":"={{ $parameter[\"operation\"] + \": \" + $parameter[\"resource\"] }}","description":"Interact with Anthropic AI models","defaults":{"name":"Anthropic"},"usableAsTool":true,"codex":{"alias":["LangChain","document","image","assistant","claude"],"categories":["AI"],"subcategories":{"AI":["Agents","Miscellaneous","Root Nodes"]},"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-langchain.anthropic/"}]}},"inputs":"={{\n\t\t(() => {\n\t\t\tconst resource = $parameter.resource;\n\t \tconst operation = $parameter.operation;\n\t\t\tif (resource === 'text' && operation === 'message') {\n\t\t\t\treturn [{ type: 'main' }, { type: 'ai_tool', displayName: 'Tools' }];\n\t\t\t}\n\n\t\t\treturn ['main'];\n\t\t})()\n\t}}","outputs":["main"],"credentials":[{"name":"anthropicApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Document","value":"document"},{"name":"File","value":"file"},{"name":"Image","value":"image"},{"name":"Prompt","value":"prompt"},{"name":"Text","value":"text"}],"default":"text"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Analyze Document","value":"analyze","action":"Analyze document","description":"Take in documents and answer questions about them"}],"default":"analyze","displayOptions":{"show":{"resource":["document"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"modelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. claude-sonnet-4-6"}],"displayOptions":{"show":{"operation":["analyze"],"resource":["document"]}}},{"displayName":"Text Input","name":"text","type":"string","placeholder":"e.g. What's in this document?","default":"What's in this document?","typeOptions":{"rows":2},"displayOptions":{"show":{"operation":["analyze"],"resource":["document"]}}},{"displayName":"Input Type","name":"inputType","type":"options","default":"url","options":[{"name":"Document URL(s)","value":"url"},{"name":"Binary File(s)","value":"binary"}],"displayOptions":{"show":{"operation":["analyze"],"resource":["document"]}}},{"displayName":"URL(s)","name":"documentUrls","type":"string","placeholder":"e.g. https://example.com/document.pdf","description":"URL(s) of the document(s) to analyze, multiple URLs can be added separated by comma","default":"","displayOptions":{"show":{"inputType":["url"],"operation":["analyze"],"resource":["document"]}}},{"displayName":"Input Data Field Name(s)","name":"binaryPropertyName","type":"string","default":"data","placeholder":"e.g. data","hint":"The name of the input field containing the binary file data to be processed","description":"Name of the binary field(s) which contains the document(s), seperate multiple field names with commas","displayOptions":{"show":{"inputType":["binary"],"operation":["analyze"],"resource":["document"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to simplify the response or not","displayOptions":{"show":{"operation":["analyze"],"resource":["document"]}}},{"displayName":"Options","name":"options","placeholder":"Add Option","type":"collection","default":{},"options":[{"displayName":"Length of Description (Max Tokens)","description":"Fewer tokens will result in shorter, less detailed image description","name":"maxTokens","type":"number","default":1024,"typeOptions":{"minValue":1}}],"displayOptions":{"show":{"operation":["analyze"],"resource":["document"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Upload File","value":"upload","action":"Upload a file","description":"Upload a file to the Anthropic API for later use"},{"name":"Get File Metadata","value":"get","action":"Get file metadata","description":"Get metadata for a file from the Anthropic API"},{"name":"List Files","value":"list","action":"List files","description":"List files from the Anthropic API"},{"name":"Delete File","value":"deleteFile","action":"Delete a file","description":"Delete a file from the Anthropic API"}],"default":"upload","displayOptions":{"show":{"resource":["file"]}}},{"displayName":"File ID","name":"fileId","type":"string","placeholder":"e.g. file_123","description":"ID of the file to delete","default":"","displayOptions":{"show":{"operation":["deleteFile"],"resource":["file"]}}},{"displayName":"File ID","name":"fileId","type":"string","placeholder":"e.g. file_123","description":"ID of the file to get metadata for","default":"","displayOptions":{"show":{"operation":["get"],"resource":["file"]}}},{"displayName":"Return All","name":"returnAll","type":"boolean","default":false,"description":"Whether to return all results or only up to a given limit","displayOptions":{"show":{"operation":["list"],"resource":["file"]}}},{"displayName":"Limit","name":"limit","type":"number","typeOptions":{"minValue":1,"maxValue":1000},"default":50,"description":"Max number of results to return","displayOptions":{"show":{"returnAll":[false],"operation":["list"],"resource":["file"]}}},{"displayName":"Input Type","name":"inputType","type":"options","default":"url","options":[{"name":"File URL","value":"url"},{"name":"Binary File","value":"binary"}],"displayOptions":{"show":{"operation":["upload"],"resource":["file"]}}},{"displayName":"URL","name":"fileUrl","type":"string","placeholder":"e.g. https://example.com/file.pdf","description":"URL of the file to upload","default":"","displayOptions":{"show":{"inputType":["url"],"operation":["upload"],"resource":["file"]}}},{"displayName":"Input Data Field Name","name":"binaryPropertyName","type":"string","default":"data","placeholder":"e.g. data","hint":"The name of the input field containing the binary file data to be processed","description":"Name of the binary field which contains the file","displayOptions":{"show":{"inputType":["binary"],"operation":["upload"],"resource":["file"]}}},{"displayName":"Options","name":"options","type":"collection","placeholder":"Add Option","default":{},"options":[{"displayName":"File Name","name":"fileName","type":"string","description":"The file name to use for the uploaded file","default":""}],"displayOptions":{"show":{"operation":["upload"],"resource":["file"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Analyze Image","value":"analyze","action":"Analyze image","description":"Take in images and answer questions about them"}],"default":"analyze","displayOptions":{"show":{"resource":["image"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"modelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. claude-sonnet-4-6"}],"displayOptions":{"show":{"operation":["analyze"],"resource":["image"]}}},{"displayName":"Text Input","name":"text","type":"string","placeholder":"e.g. What's in this image?","default":"What's in this image?","typeOptions":{"rows":2},"displayOptions":{"show":{"operation":["analyze"],"resource":["image"]}}},{"displayName":"Input Type","name":"inputType","type":"options","default":"url","options":[{"name":"Image URL(s)","value":"url"},{"name":"Binary File(s)","value":"binary"}],"displayOptions":{"show":{"operation":["analyze"],"resource":["image"]}}},{"displayName":"URL(s)","name":"imageUrls","type":"string","placeholder":"e.g. https://example.com/image.png","description":"URL(s) of the image(s) to analyze, multiple URLs can be added separated by comma","default":"","displayOptions":{"show":{"inputType":["url"],"operation":["analyze"],"resource":["image"]}}},{"displayName":"Input Data Field Name(s)","name":"binaryPropertyName","type":"string","default":"data","placeholder":"e.g. data","hint":"The name of the input field containing the binary file data to be processed","description":"Name of the binary field(s) which contains the image(s), seperate multiple field names with commas","displayOptions":{"show":{"inputType":["binary"],"operation":["analyze"],"resource":["image"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to simplify the response or not","displayOptions":{"show":{"operation":["analyze"],"resource":["image"]}}},{"displayName":"Options","name":"options","placeholder":"Add Option","type":"collection","default":{},"options":[{"displayName":"Length of Description (Max Tokens)","description":"Fewer tokens will result in shorter, less detailed image description","name":"maxTokens","type":"number","default":1024,"typeOptions":{"minValue":1}}],"displayOptions":{"show":{"operation":["analyze"],"resource":["image"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Generate Prompt","value":"generate","action":"Generate a prompt","description":"Generate a prompt for a model"},{"name":"Improve Prompt","value":"improve","action":"Improve a prompt","description":"Improve a prompt for a model"},{"name":"Templatize Prompt","value":"templatize","action":"Templatize a prompt","description":"Templatize a prompt for a model"}],"default":"generate","displayOptions":{"show":{"resource":["prompt"]}}},{"displayName":"The <a href=\"https://docs.anthropic.com/en/api/prompt-tools-generate\">prompt tools APIs</a> are in a closed research preview. Your organization must request access to use them.","name":"experimentalNotice","type":"notice","default":"","displayOptions":{"show":{"resource":["prompt"]}}},{"displayName":"Task","name":"task","type":"string","description":"Description of the prompt's purpose","placeholder":"e.g. A chef for a meal prep planning service","default":"","typeOptions":{"rows":2},"displayOptions":{"show":{"operation":["generate"],"resource":["prompt"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to return a simplified version of the response instead of the raw data","displayOptions":{"show":{"operation":["generate"],"resource":["prompt"]}}},{"displayName":"Messages","name":"messages","type":"fixedCollection","typeOptions":{"sortable":true,"multipleValues":true},"description":"Messages that constitute the prompt to be improved","placeholder":"Add Message","default":{"values":[{"content":"","role":"user"}]},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Prompt","name":"content","type":"string","description":"The content of the message to be sent","default":"","placeholder":"e.g. Concise instructions for a meal prep service","typeOptions":{"rows":2}},{"displayName":"Role","name":"role","type":"options","description":"Role in shaping the model's response, it tells the model how it should behave and interact with the user","options":[{"name":"User","value":"user","description":"Send a message as a user and get a response from the model"},{"name":"Assistant","value":"assistant","description":"Tell the model to adopt a specific tone or personality"}],"default":"user"}]}],"displayOptions":{"show":{"operation":["improve"],"resource":["prompt"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to return a simplified version of the response instead of the raw data","displayOptions":{"show":{"operation":["improve"],"resource":["prompt"]}}},{"displayName":"Options","name":"options","placeholder":"Add Option","type":"collection","default":{},"options":[{"displayName":"System Message","name":"system","type":"string","description":"The existing system prompt to incorporate, if any","default":"","placeholder":"e.g. You are a professional meal prep chef"},{"displayName":"Feedback","name":"feedback","type":"string","description":"Feedback for improving the prompt","default":"","placeholder":"e.g. Make it more detailed and include cooking times"}],"displayOptions":{"show":{"operation":["improve"],"resource":["prompt"]}}},{"displayName":"Messages","name":"messages","type":"fixedCollection","typeOptions":{"sortable":true,"multipleValues":true},"description":"Messages that constitute the prompt to be templatized","placeholder":"Add Message","default":{"values":[{"content":"","role":"user"}]},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Prompt","name":"content","type":"string","description":"The content of the message to be sent","default":"","placeholder":"e.g. Translate hello to German","typeOptions":{"rows":2}},{"displayName":"Role","name":"role","type":"options","description":"Role in shaping the model's response, it tells the model how it should behave and interact with the user","options":[{"name":"User","value":"user","description":"Send a message as a user and get a response from the model"},{"name":"Assistant","value":"assistant","description":"Tell the model to adopt a specific tone or personality"}],"default":"user"}]}],"displayOptions":{"show":{"operation":["templatize"],"resource":["prompt"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to return a simplified version of the response instead of the raw data","displayOptions":{"show":{"operation":["templatize"],"resource":["prompt"]}}},{"displayName":"Options","name":"options","placeholder":"Add Option","type":"collection","default":{},"options":[{"displayName":"System Message","name":"system","type":"string","description":"The existing system prompt to templatize","default":"","placeholder":"e.g. You are a professional English to German translator"}],"displayOptions":{"show":{"operation":["templatize"],"resource":["prompt"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Message a Model","value":"message","action":"Message a model","description":"Create a completion with Anthropic model"}],"default":"message","displayOptions":{"show":{"resource":["text"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"modelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. claude-sonnet-4-6"}],"displayOptions":{"show":{"operation":["message"],"resource":["text"]}}},{"displayName":"Messages","name":"messages","type":"fixedCollection","typeOptions":{"sortable":true,"multipleValues":true},"placeholder":"Add Message","default":{"values":[{"content":"","role":"user"}]},"options":[{"displayName":"Values","name":"values","values":[{"displayName":"Prompt","name":"content","type":"string","description":"The content of the message to be sent","default":"","placeholder":"e.g. Hello, how can you help me?","typeOptions":{"rows":2}},{"displayName":"Role","name":"role","type":"options","description":"Role in shaping the model's response, it tells the model how it should behave and interact with the user","options":[{"name":"User","value":"user","description":"Send a message as a user and get a response from the model"},{"name":"Assistant","value":"assistant","description":"Tell the model to adopt a specific tone or personality"}],"default":"user"}]}],"displayOptions":{"show":{"operation":["message"],"resource":["text"]}}},{"displayName":"Add Attachments","name":"addAttachments","type":"boolean","default":false,"description":"Whether to add attachments to the message","displayOptions":{"show":{"operation":["message"],"resource":["text"]}}},{"displayName":"Attachments Input Type","name":"attachmentsInputType","type":"options","default":"url","description":"The type of input to use for the attachments","options":[{"name":"URL(s)","value":"url"},{"name":"Binary File(s)","value":"binary"}],"displayOptions":{"show":{"addAttachments":[true],"operation":["message"],"resource":["text"]}}},{"displayName":"Attachment URL(s)","name":"attachmentsUrls","type":"string","default":"","placeholder":"e.g. https://example.com/image.png","description":"URL(s) of the file(s) to attach, multiple URLs can be added separated by comma","displayOptions":{"show":{"addAttachments":[true],"attachmentsInputType":["url"],"operation":["message"],"resource":["text"]}}},{"displayName":"Attachment Input Data Field Name(s)","name":"binaryPropertyName","type":"string","default":"data","placeholder":"e.g. data","description":"Name of the binary field(s) which contains the file(s) to attach, multiple field names can be added separated by comma","displayOptions":{"show":{"addAttachments":[true],"attachmentsInputType":["binary"],"operation":["message"],"resource":["text"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to return a simplified version of the response instead of the raw data","displayOptions":{"show":{"operation":["message"],"resource":["text"]}}},{"displayName":"Options","name":"options","placeholder":"Add Option","type":"collection","default":{},"options":[{"displayName":"Include Merged Response","name":"includeMergedResponse","type":"boolean","default":false,"description":"Whether to include a single output string merging all text parts of the response"},{"displayName":"System Message","name":"system","type":"string","default":"","placeholder":"e.g. You are a helpful assistant"},{"displayName":"Code Execution","name":"codeExecution","type":"boolean","default":false,"description":"Whether to enable code execution. Not supported by all models."},{"displayName":"Web Search","name":"webSearch","type":"boolean","default":false,"description":"Whether to enable web search"},{"displayName":"Web Search Max Uses","name":"maxUses","type":"number","default":5,"description":"The maximum number of web search uses per request","typeOptions":{"minValue":0,"numberPrecision":0}},{"displayName":"Web Search Allowed Domains","name":"allowedDomains","type":"string","default":"","description":"Comma-separated list of domains to search. Only domains in this list will be searched. Conflicts with \"Web Search Blocked Domains\".","placeholder":"e.g. google.com, wikipedia.org"},{"displayName":"Web Search Blocked Domains","name":"blockedDomains","type":"string","default":"","description":"Comma-separated list of domains to block from search. Conflicts with \"Web Search Allowed Domains\".","placeholder":"e.g. google.com, wikipedia.org"},{"displayName":"Maximum Number of Tokens","name":"maxTokens","default":1024,"description":"The maximum number of tokens to generate in the completion","type":"number","typeOptions":{"minValue":1,"numberPrecision":0}},{"displayName":"Output Randomness (Temperature)","name":"temperature","default":1,"description":"Controls the randomness of the output. Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive","type":"number","typeOptions":{"minValue":0,"maxValue":1,"numberPrecision":1}},{"displayName":"Output Randomness (Top P)","name":"topP","default":0.7,"description":"The maximum cumulative probability of tokens to consider when sampling","type":"number","typeOptions":{"minValue":0,"maxValue":1,"numberPrecision":1}},{"displayName":"Output Randomness (Top K)","name":"topK","default":5,"description":"The maximum number of tokens to consider when sampling","type":"number","typeOptions":{"minValue":0,"numberPrecision":0}},{"displayName":"Max Tool Calls Iterations","name":"maxToolsIterations","type":"number","default":15,"description":"The maximum number of tool iteration cycles the LLM will run before stopping. A single iteration can contain multiple tool calls. Set to 0 for no limit","typeOptions":{"minValue":0,"numberPrecision":0}}],"displayOptions":{"show":{"operation":["message"],"resource":["text"]}}}],"iconUrl":"icons/@n8n/n8n-nodes-langchain/dist/nodes/vendors/Anthropic/anthropic.svg"},
{"displayName":"Google Gemini","name":"googleGemini","group":["transform"],"version":[1,1.1,1.2],"defaultVersion":1.2,"subtitle":"={{ $parameter[\"operation\"] + \": \" + $parameter[\"resource\"] }}","description":"Interact with Google Gemini AI models","defaults":{"name":"Google Gemini"},"usableAsTool":true,"codex":{"alias":["LangChain","video","document","audio","transcribe","assistant"],"categories":["AI"],"subcategories":{"AI":["Agents","Miscellaneous","Root Nodes"]},"resources":{"primaryDocumentation":[{"url":"https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-langchain.googlegemini/"}]}},"inputs":"={{\n\t\t(() => {\n\t\t\tconst resource = $parameter.resource;\n\t \tconst operation = $parameter.operation;\n\t\t\tif (resource === 'text' && operation === 'message') {\n\t\t\t\treturn [{ type: 'main' }, { type: 'ai_tool', displayName: 'Tools' }];\n\t\t\t}\n\n\t\t\treturn ['main'];\n\t\t})()\n\t}}","outputs":["main"],"credentials":[{"name":"googlePalmApi","required":true}],"properties":[{"displayName":"Resource","name":"resource","type":"options","noDataExpression":true,"options":[{"name":"Audio","value":"audio"},{"name":"Document","value":"document"},{"name":"File Search","value":"fileSearch"},{"name":"Image","value":"image"},{"name":"Media File","value":"file"},{"name":"Text","value":"text"},{"name":"Video","value":"video"}],"default":"text"},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Analyze Audio","value":"analyze","action":"Analyze audio","description":"Take in audio and answer questions about it"},{"name":"Transcribe a Recording","value":"transcribe","action":"Transcribe a recording","description":"Transcribes audio into the text"}],"default":"transcribe","displayOptions":{"show":{"resource":["audio"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"typeOptions":{"loadOptionsDependsOn":["operation","resource"]},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"audioModelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. models/gemini-2.5-flash"}],"displayOptions":{"show":{"operation":["analyze"],"resource":["audio"]}}},{"displayName":"Text Input","name":"text","type":"string","placeholder":"e.g. What's in this audio?","default":"What's in this audio?","typeOptions":{"rows":2},"displayOptions":{"show":{"operation":["analyze"],"resource":["audio"]}}},{"displayName":"Input Type","name":"inputType","type":"options","default":"url","options":[{"name":"Audio URL(s)","value":"url"},{"name":"Binary File(s)","value":"binary"}],"displayOptions":{"show":{"operation":["analyze"],"resource":["audio"]}}},{"displayName":"URL(s)","name":"audioUrls","type":"string","placeholder":"e.g. https://example.com/audio.mp3","description":"URL(s) of the audio(s) to analyze, multiple URLs can be added separated by comma","default":"","displayOptions":{"show":{"inputType":["url"],"operation":["analyze"],"resource":["audio"]}}},{"displayName":"Input Data Field Name(s)","name":"binaryPropertyName","type":"string","default":"data","placeholder":"e.g. data","hint":"The name of the input field containing the binary file data to be processed","description":"Name of the binary field(s) which contains the audio(s), seperate multiple field names with commas","displayOptions":{"show":{"inputType":["binary"],"operation":["analyze"],"resource":["audio"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to simplify the response or not","displayOptions":{"show":{"operation":["analyze"],"resource":["audio"]}}},{"displayName":"Options","name":"options","placeholder":"Add Option","type":"collection","default":{},"options":[{"displayName":"Length of Description (Max Tokens)","description":"Fewer tokens will result in shorter, less detailed audio description","name":"maxOutputTokens","type":"number","default":300,"typeOptions":{"minValue":1}}],"displayOptions":{"show":{"operation":["analyze"],"resource":["audio"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"typeOptions":{"loadOptionsDependsOn":["operation","resource"]},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"audioModelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. models/gemini-2.5-flash"}],"displayOptions":{"show":{"operation":["transcribe"],"resource":["audio"]}}},{"displayName":"Input Type","name":"inputType","type":"options","default":"url","options":[{"name":"Audio URL(s)","value":"url"},{"name":"Binary File(s)","value":"binary"}],"displayOptions":{"show":{"operation":["transcribe"],"resource":["audio"]}}},{"displayName":"URL(s)","name":"audioUrls","type":"string","placeholder":"e.g. https://example.com/audio.mp3","description":"URL(s) of the audio(s) to transcribe, multiple URLs can be added separated by comma","default":"","displayOptions":{"show":{"inputType":["url"],"operation":["transcribe"],"resource":["audio"]}}},{"displayName":"Input Data Field Name(s)","name":"binaryPropertyName","type":"string","default":"data","placeholder":"e.g. data","hint":"The name of the input field containing the binary file data to be processed","description":"Name of the binary field(s) which contains the audio(s), seperate multiple field names with commas","displayOptions":{"show":{"inputType":["binary"],"operation":["transcribe"],"resource":["audio"]}}},{"displayName":"Simplify Output","name":"simplify","type":"boolean","default":true,"description":"Whether to simplify the response or not","displayOptions":{"show":{"operation":["transcribe"],"resource":["audio"]}}},{"displayName":"Options","name":"options","type":"collection","default":{},"options":[{"displayName":"Start Time","name":"startTime","type":"string","default":"","description":"The start time of the audio in MM:SS or HH:MM:SS format","placeholder":"e.g. 00:15"},{"displayName":"End Time","name":"endTime","type":"string","default":"","description":"The end time of the audio in MM:SS or HH:MM:SS format","placeholder":"e.g. 02:15"}],"displayOptions":{"show":{"operation":["transcribe"],"resource":["audio"]}}},{"displayName":"Operation","name":"operation","type":"options","noDataExpression":true,"options":[{"name":"Analyze Document","value":"analyze","action":"Analyze document","description":"Take in documents and answer questions about them"}],"default":"analyze","displayOptions":{"show":{"resource":["document"]}}},{"displayName":"Model","name":"modelId","type":"resourceLocator","default":{"mode":"list","value":""},"typeOptions":{"loadOptionsDependsOn":["operation","resource"]},"required":true,"modes":[{"displayName":"From List","name":"list","type":"list","typeOptions":{"searchListMethod":"modelSearch","searchable":true}},{"displayName":"ID","name":"id","type":"string","placeholder":"e.g. models/gemini-2.5-flash"}],"displayOptions":{"show":{"operation":["analyze"],"resource":["document"]}}},{"displayName":"Text Input","name":"text","type":"string","placeholder":"e.g. What's in this document?","default":"What's in this document?","typeOptions":{"rows":2},"displayOptions":{"show":{"operation":["analyze"],"resource":["document"]}}},{"displayName":"Input Type","name":"inputType","type":"options","default":"url","options":[{"name":"Document URL(s)","value":"url"},{"name":"Binary File(s)","value":"binary"}],"displayOptions":{"show":{"operation":["analyze"],"resource":["document"]}}},{"displayName":"URL(s)","name":"documentUrls","type":"string","placeholder":"e.g. https://example.com/document.pdf","description":"URL(s) of the document(s) to analyze, multiple URLs can be added separated by comma","default":"","displayOptions":{"show":{"inputType":["url"],"operation":["analyze"],"resource":["document"]}}},{"displayName":"Input Data Field Name(s)","name":"binaryPropertyName","type":"string","default":"data","placeholder":"e.g. data","