
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given the function $f(x)=\ln x- \dfrac {(x-1)(ax-a+1)}{x}$.
$(1)$ When $a=1$, find the equation of the tangent line to the curve $y=f(x)$ at $(e,f(e))$;
$(2)$ When $x > 0$ and $x\neq 1$, the inequality $\dfrac {\ln x}{x-1} < \dfrac {1+a(x-1)}{x}$ always holds, find the value of the real number $a$.

Present the answer in LaTex format: \boxed{Your answer}
user