File size: 3,033 Bytes
0a84888 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
---
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
title: Code in n8n Documentation and Guides
description: Access documentation and guides on using code and expressions in n8n and other developer resources.
contentType: overview
---
# Code in n8n
n8n is a low-code tool. This means you can do a lot without code, then add code when needed.
## Code in your workflows
There are two places in your workflows where you can use code:
<div class="grid-cards-vertical cards" markdown>
- __Expressions__
Use [expressions](/glossary.md#expression-n8n) to transform [data](/data/index.md) in your nodes. You can use JavaScript in expressions, as well as n8n's [Built-in methods and variables](/code/builtin/overview.md) and [Data transformation functions](/code/builtin/data-transformation-functions/index.md).
[:octicons-arrow-right-24: Expressions](/code/expressions.md)
- __Code node__
Use the Code node to add JavaScript or Python to your workflow.
[:octicons-arrow-right-24: Code node](/code/code-node.md)
</div>
## Other technical resources
These are features that are relevant to technical users.
### Technical nodes
n8n provides core nodes, which simplify adding key functionality such as API requests, webhooks, scheduling, and file handling.
<div class="grid-cards-vertical cards" markdown>
- __Write a backend__
The [HTTP Request](/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/index.md), [Webhook](/integrations/builtin/core-nodes/n8n-nodes-base.webhook/index.md), and [Code](/code/code-node.md) nodes help you make API calls, respond to webhooks, and write any JavaScript in your workflow.
Use this do things like [Create an API endpoint](https://n8n.io/workflows/1750-creating-an-api-endpoint/){:target=_blank .external-link}.
[:octicons-arrow-right-24: Core nodes](/integrations/builtin/core-nodes/index.md)
- __Represent complex logic__
You can build complex flows, using nodes like [If](/integrations/builtin/core-nodes/n8n-nodes-base.if.md), [Switch](/integrations/builtin/core-nodes/n8n-nodes-base.switch.md), and [Merge](/integrations/builtin/core-nodes/n8n-nodes-base.merge.md) nodes.
[:octicons-arrow-right-24: Flow logic](/flow-logic/index.md)
</div>
### Other developer resources
<div class="grid-cards-vertical cards" markdown>
- __The n8n API__
n8n provides an API, where you can programmatically perform many of the same tasks as you can in the GUI. There's an [n8n API node](/integrations/builtin/core-nodes/n8n-nodes-base.n8n.md) to access the API in your workflows.
[:octicons-arrow-right-24: API](/api/index.md)
- __Self-host__
You can self-host n8n. This keeps your data on your own infrastructure.
[:octicons-arrow-right-24: Hosting](/hosting/index.md)
- __Build your own nodes__
You can build custom nodes, install them on your n8n instance, and publish them to [npm](https://www.npmjs.com/){:target=_blank .external-link}.
[:octicons-arrow-right-24: Creating nodes](/integrations/creating-nodes/overview.md)
</div>
|