Transforming fields into French for Airtable

Welcome to the Make community!

This is a great use-case for AI to perform.

You can do this with just a single module.

Here is an example using the FREE Groq AI module “Create a Chat Completion”:

Output

Screenshot_2024-08-26_190859

Module Export - quick import into your scenario

You can copy and paste this module export into your scenario. This will import the modules (with fields/settings/filters) shown in my screenshots above.

  1. Move your mouse over the line of code below. Copy the JSON by clicking the copy button on the right of the code, which looks like this:

  2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the editor.

  3. Click on each imported module and re-save it for validation. There may be some errors prompting you to remap some variables and connections.

JSON module export — paste this directly in your scenario

{"subflows":[{"flow":[{"id":284,"module":"groq:chatCompletion","version":1,"parameters":{"__IMTCONN__":2370769},"mapper":{"model":"llama-3.1-70b-versatile","messages":[{"role":"system","content":"You are a translator. You will be presented with English text, which you will translate into French, preserving the same format. Do not add additional content in your response."},{"role":"user","content":"won\nsubscription\nvalidate"}],"response_format":"text"},"metadata":{"designer":{"x":2309,"y":-1385},"restore":{"parameters":{"__IMTCONN__":{"collapsed":true,"label":"My Groq API Key connection","data":{"scoped":"true","connection":"groq"}}},"expect":{"model":{"mode":"chose","label":"llama-3.1-70b-versatile"},"messages":{"mode":"chose","items":[{"role":{"mode":"chose","label":"System"}},{"role":{"mode":"chose","label":"User"}}]},"response_format":{"mode":"chose","label":"Text"}}},"parameters":[{"name":"__IMTCONN__","type":"account:groq","label":"Connection","required":true}],"expect":[{"name":"model","type":"select","label":"Model","required":true},{"name":"messages","type":"array","label":"Messages","required":true,"spec":[{"name":"role","type":"select","label":"Role","options":[{"label":"System","value":"system"},{"label":"User","value":"user"},{"label":"Assistant","value":"assistant"}]},{"name":"content","type":"text","label":"Content"}]},{"name":"max_tokens","type":"number","label":"Max tokens returned"},{"name":"temperature","type":"number","label":"Temperature"},{"name":"response_format","type":"select","label":"Response Format","validate":{"enum":["text","json_object"]}},{"name":"top_p","type":"number","label":"Top P"},{"name":"frequency_penalty","type":"number","label":"Frequency Penalty"},{"name":"seed","type":"number","label":"Seed"}]}}]}],"metadata":{"version":1}}

Note: Did you know you can reduce the size of blueprints and module export code like the above, using the Make Blueprint Scrubber?

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

1 Like