tutorials

Mastering AI Commands: Advanced Automation Techniques

tutorialaiautomationadvancedproductivity

AI commands in Lightning Assist can transform how you work. This guide covers advanced techniques to maximize your productivity.

Understanding AI Commands

An AI command works on text you select. Lightning Assist sends that text, together with your instruction, to an AI model and pastes the answer back into the same app. Unlike a snippet, which types the same saved text every time, the result depends on what you selected and what you asked for.

Basic AI Command Structure

Every AI command has two parts: the text you select, and an instruction. A good instruction names the action and, when it matters, the format or the tone:

[action] + [format or tone]

For example, select your notes about a delayed project and use the instruction: "Write a short, polite email to the client from these notes."

How to run an AI command: select the text first. Then either press AI Enhance (Alt+Shift+K by default; Option+Shift+K on a Mac, Ctrl+Alt+K on Linux) and type an instruction or pick a quick action, or press the shortcut of a command you saved (Ctrl+Shift plus a key you choose; Cmd+Shift on a Mac). The AI Command window shows your selection: press Execute AI Command (Ctrl+Enter, or Cmd+Enter on a Mac), check the answer, then press Submit to paste it back or Copy & Close to keep it on the clipboard. Without a selection, the window has nothing to work on. All examples below assume these steps.

Advanced Techniques

1. Context-Aware Generation

The selection is the context. Select everything the AI needs, for example the client's message and your notes under it, then give the instruction:

Reply to this message. Confirm the new date from my notes and apologise for the delay.

The more relevant text you select, the better the output.

2. Multi-Step Workflows

Chain commands for complex tasks:

Step 1: Generate an outline. Select a one-line topic and use "Write a blog outline for this topic."

Step 2: Expand sections. Select one heading of the outline and use "Expand this section into two paragraphs."

3. Format-Specific Commands

Specify the output format:

  • "Turn this into bullet points."
  • "Turn this into a numbered list."
  • "Turn this into a table with one row per item."

4. Style Customization

Control tone and style:

  • "Rewrite this as a professional email."
  • "Rewrite this as a casual message."
  • "Explain this for a technical reader."

5. Language Translation

Translate content on the fly: select the text, press AI Enhance and choose Translate. The menu lists over 40 languages, and you can type any other. The same works as an instruction:

  • "Translate to Spanish."
  • "Translate to French. Keep the formatting."

Real-World Use Cases

Content Creation

Blog Posts (select your draft or your notes):

  • "Write an introduction for this post."
  • "Write a conclusion from these main points."

Social Media (select the article or the announcement):

  • "Turn this into a LinkedIn post."
  • "Turn this into a thread of five short posts."

Documentation

Technical Docs (select the endpoint or the feature notes):

  • "Explain this API endpoint for a new developer."
  • "Write a short user guide for this feature."

Code Documentation (select the code in your editor):

  • "Write a doc comment for this function."
  • "Write a README introduction for this project."

Communication

Emails (select the thread or your notes):

  • "Write a follow-up email from these notes."
  • "Write a meeting summary from these notes."

Reports (select the report or the data):

  • "Summarize these figures in three sentences."
  • "Write an executive summary of this report."

Pro Tips

1. Be Specific

Bad: "write email" (too vague) Good: "Write a professional email to the client about the project delay, with an apology" (specific and contextual)

2. Provide Examples

Select an example you like together with your new notes, and ask: "Write about the notes below in the style of the first paragraph."

3. Iterate and Refine

Don't expect perfection on first try:

  1. Generate initial content
  2. Review and identify improvements
  3. Run it again with a sharper instruction

4. Combine with Text Expansion

Use AI commands to create templates, then save them as snippets:

  1. Generate content with AI
  2. Edit and personalize
  3. Save as static snippet for future use

By default, your snippets expand as you type — no hotkey needed: the default mode on the app's Activation screen is Inline. Type your snippet's shortcut, like ;meeting, and it is replaced as you type. A leading symbol such as ; keeps shortcuts distinct from normal words. Inline has two styles: Instant fires the moment the shortcut is complete, and After space waits for a space. Prefer a deliberate key instead? Switch to Hotkey: type the shortcut, then press your hotkey. See all activation modes →

5. Organize by Use Case

Create snippet folders:

  • AI/Content
  • AI/Communication
  • AI/Documentation
  • AI/Translation

💡 Want AI commands that work in every app — not just a browser tab? Lightning Assist puts rewrite, summarize, and translate into your keyboard shortcut, anywhere you type. Try free for 14 days → — no credit card.

Advanced Workflows

Content Repurposing

Repurpose a blog post step by step (select the post each time):

  • Step 1: "Turn this into a thread of short posts."
  • Step 2: "Turn this into a LinkedIn post."
  • Step 3: "Turn this into an email newsletter."

Research and Summarization

  • "Summarize this article." (select the article)
  • "Extract the key points." (select the long text)
  • "Write a bullet summary." (select the document)

Code Assistance

  • "Explain this code." (select the code)
  • "Write a unit test for this function." (select the function)
  • "Suggest a simpler version of this code." (select the code)

Best Practices

  1. Review AI Output: Always review and edit AI-generated content
  2. Maintain Brand Voice: Customize AI output to match your style
  3. Verify Facts: AI can make mistakes - verify important information
  4. Use as Starting Point: AI generates drafts, not final content
  5. Combine Techniques: Mix AI commands with static templates

Common Mistakes to Avoid

  • Being too vague in prompts
  • Pressing the shortcut with nothing selected
  • Using AI for sensitive information without review
  • Expecting perfect output without editing
  • Not personalizing AI-generated content
  • Over-relying on AI without understanding context

Measuring Success

Track your productivity:

  • Time saved per task
  • Quality of generated content
  • Reduction in repetitive work
  • Increase in output volume

Next Steps

  1. Start Simple: Begin with the quick actions in AI Enhance
  2. Experiment: Try different prompt styles
  3. Build Library: Save the instructions you reuse as AI Commands, each with its own shortcut (up to 50)
  4. Share with Team: Collaborate on best practices

Ready to master AI commands? Download Lightning Assist and start automating your workflow today!

Where AI commands sit in the product

AI commands are one pillar of the broader assistant experience. Read AI features for the full picture—how commands relate to snippets, speech, and team libraries—before you design team-wide standards. If you need quick wins for everyday prompts, 10 productivity hacks with AI commands is the companion piece to this advanced guide: share that with beginners and keep this article for power users.

A saved prompt and an AI command are not the same thing. A snippet that holds a prompt only types it, for example into ChatGPT, and that service runs it. An AI command runs the AI itself on the text you select.

Grounding prompts in real work

Advanced use does not mean “longer prompts.” It means repeatable scaffolding: the same three-step pattern for incident summaries, the same tone keys for customer-facing vs internal chat. Document those patterns in Notion or Confluence and link back to text expander so new hires understand where static snippets end and AI begins.

Commercial and rollout notes

AI commands run on AI Credits, on every plan. The cost depends on the length of the text and the model you pick: rewriting a 100-word email takes about 2 credits on Standard and about 40 on Best quality, and every run costs at least 1 credit. New accounts get 200 AI Credits, and a paid Pro plan adds 1000 every month.

Larger teams should align AI usage with budget owners. Credits, seats, and renewal timing are summarized on pricing. For installers and IT packaging, use downloads. Executives asking for a one-slide overview should get the homepage—it frames the product without tutorial depth.

Safety and review

Never paste secrets, tokens, or regulated health data into prompts you do not control. Default to review-before-send for customer-facing channels, and use snippets for pre-approved legal language that must not drift. Combining discipline here with the workflows above is how AI commands stay fast and defensible.

Sources

Related: the feature overview, AI commands in any desktop app.